/* ===== VARIABLES ===== */
:root {
  --primary: #0F7A3F;
  --primary-light: #14A854;
  --primary-dark: #0A5C2E;
  --accent: #E8B931;
  --accent-light: #F5D06B;
  --bg: #FAFDF7;
  --bg-dark: #0B1A0F;
  --bg-card: #FFFFFF;
  --text: #1A2E1A;
  --text-secondary: #4A6B4A;
  --text-light: #7A9A7A;
  --border: #D4E8D4;
  --border-light: #E8F2E8;
  --gradient: linear-gradient(135deg, #0F7A3F 0%, #14A854 50%, #1DB954 100%);
  --gradient-accent: linear-gradient(135deg, #E8B931 0%, #F5D06B 100%);
  --shadow-sm: 0 1px 3px rgba(15,122,63,0.08);
  --shadow-md: 0 4px 16px rgba(15,122,63,0.1);
  --shadow-lg: 0 8px 32px rgba(15,122,63,0.12);
  --shadow-xl: 0 16px 48px rgba(15,122,63,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --nav-height: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
iframe, video { max-width: 100%; }
table { display: block; width: 100%; overflow-x: auto; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(250,253,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-links a {
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); background: rgba(15,122,63,0.06); }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-link a.nav-cta {
  padding: 6px 12px !important;
  font-size: 0.8125rem !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15,122,63,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15,122,63,0.3);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #0B1A0F 0%, #0F2A16 30%, #133520 60%, #0B1A0F 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2314A854' fill-opacity='0.04'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 60px 0;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  color: var(--accent-light);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #14A854, #1DB954, #E8B931);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(8px); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(15,122,63,0.08);
  color: var(--primary);
  border-radius: var(--radius-xl);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ===== MISSION ===== */
.mission-section { background: #fff; }
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mission-card {
  padding: 36px 28px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.mission-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.mission-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.mission-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== MAP PREVIEW ===== */
.map-preview-section { background: var(--bg); }
.map-preview-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.home-map { height: 480px; width: 100%; }
.map-overlay-cta {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 500;
}
/* Google Maps info window overrides */
.gm-style .gm-style-iw-c { border-radius: 12px !important; padding: 4px !important; }
.gm-style .gm-style-iw-d { overflow: auto !important; }
.data-sources {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.data-source-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 600;
}
.source-badge {
  padding: 4px 12px;
  background: rgba(15,122,63,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== HOW IT WORKS ===== */
.how-section { background: #fff; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}
.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(15,122,63,0.06);
  line-height: 1;
  margin-bottom: -10px;
}
.step-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
}
.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== BREAKTHROUGHS ===== */
.breakthroughs-preview {
  background: linear-gradient(165deg, #0B1A0F 0%, #133520 100%);
  color: #fff;
}
.breakthroughs-preview .section-tag {
  background: rgba(232,185,49,0.15);
  color: var(--accent-light);
}
.breakthroughs-preview .section-desc {
  color: rgba(255,255,255,0.65);
}
.breakthroughs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.breakthrough-card {
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.breakthrough-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.breakthrough-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(232,185,49,0.15);
  color: var(--accent-light);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.breakthrough-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.breakthrough-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}
.breakthroughs-preview .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.breakthroughs-preview .btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--bg);
  padding-bottom: 120px;
}
.newsletter-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 64px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}
.newsletter-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.newsletter-card > p { max-width: 600px; margin: 0 auto; }
.newsletter-content > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}
.newsletter-form { max-width: 680px; margin: 0 auto; }
.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-row input,
.form-row select {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,122,63,0.1);
}
.newsletter-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-links a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--primary);
  color: #fff;
}
.footer-links h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}
.footer-attribution {
  margin-top: 8px;
  font-size: 0.75rem;
}
.footer .nav-logo .logo-text { color: #fff; }

/* ===== PAGE HEADER (for sub-pages) ===== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(165deg, #0B1A0F 0%, #133520 100%);
  text-align: center;
  color: #fff;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.page-header p {
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 80px 0;
}
.page-content .content-block {
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 48px 0 16px;
  color: var(--text);
}
.page-content h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text);
}
.page-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.page-content ul {
  margin: 0 0 16px 24px;
  list-style: disc;
}
.page-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== UPLOAD FORM ===== */
.upload-section { padding: 80px 0; }
.upload-form-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,122,63,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .form-hint {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 6px;
}
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(15,122,63,0.02);
}
.upload-dropzone i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.upload-dropzone p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ===== FULL MAP PAGE ===== */
.full-map-container {
  padding-top: var(--nav-height);
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.map-toolbar {
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.map-toolbar select,
.map-toolbar input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
}
#fullMap { flex: 1; }

/* ===== CARDS GRID (jobs, finders, etc.) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.info-card .card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(15,122,63,0.08);
  color: var(--primary);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.info-card .card-tag.coming-soon {
  background: rgba(232,185,49,0.12);
  color: #B8900F;
}
.info-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.info-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== TOAST / NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show { transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(250,253,247,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { padding: 12px 16px; font-size: 1rem; width: 100%; }
  .nav-cta { text-align: center !important; margin-top: 8px; }
  .auth-link { width: 100%; }
  .auth-link a.nav-cta { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
  .mission-grid,
  .steps-grid,
  .breakthroughs-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .home-map { height: 320px; }
  .newsletter-card { padding: 36px 24px; }
  .form-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .upload-form-card { padding: 28px 20px; }
  .section { padding: 60px 0; }
  .map-toolbar { flex-direction: column; align-items: stretch; }
}

/* ===== MAP INFO BAR (below map) ===== */
.map-info-bar {
  background: #fff; border-top: 1px solid var(--border-light); padding: 28px 0;
}
.map-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px;
}
.map-info-item {
  display: flex; gap: 12px; align-items: flex-start;
}
.map-info-item .legend-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.map-info-item strong { font-size: 0.8125rem; display: block; margin-bottom: 4px; color: var(--text); }
.map-info-item span { font-size: 0.75rem; color: var(--text-light); line-height: 1.6; }
.map-info-tips {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--border-light);
}
.map-info-tips span {
  font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 6px;
}
.map-info-tips i { color: var(--primary); font-size: 0.7rem; }
@media (max-width: 768px) {
  .map-info-grid { grid-template-columns: 1fr; gap: 16px; }
  .map-info-tips { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== MAP LEGEND (kept for reference, hidden) ===== */
.map-legend {
  position: absolute; top: 60px; left: 12px; z-index: 10;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 340px; max-height: calc(100vh - 160px); overflow-y: auto;
  transform: translateX(-110%); opacity: 0; pointer-events: none; transition: all 0.3s ease;
  padding: 20px;
}
.map-legend.open { transform: translateX(0); opacity: 1; pointer-events: all; }
.legend-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.legend-header strong { font-size: 1rem; }
.legend-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-light); padding: 4px; line-height: 1; }
.legend-close:hover { color: var(--text); }
.legend-desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.legend-sources { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.legend-item { display: flex; gap: 12px; align-items: flex-start; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.legend-item strong { font-size: 0.8125rem; display: block; margin-bottom: 2px; }
.legend-item span { font-size: 0.75rem; color: var(--text-light); line-height: 1.5; }
.legend-note { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.legend-note i { color: var(--primary); font-size: 0.75rem; flex-shrink: 0; }

/* ===== MAP DETAIL PANEL ===== */
.full-map-container { position: relative; }
.map-detail-panel {
  position: absolute; top: 60px; right: 12px; z-index: 10;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 380px; max-height: calc(100vh - 160px); overflow-y: auto;
  transform: translateX(110%); opacity: 0; pointer-events: none; transition: all 0.3s ease;
}
.map-detail-panel.open { transform: translateX(0); opacity: 1; pointer-events: all; }
.detail-header { padding: 20px 20px 0; position: relative; }
.detail-header .legend-close { position: absolute; top: 12px; right: 12px; }
.detail-title h3 { font-family: 'Playfair Display', serif; }
.detail-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-xl); font-size: 0.6875rem; font-weight: 600;
  border: 1px solid;
}
.detail-badge.verified { background: rgba(15,122,63,0.08); color: #0F7A3F; border-color: rgba(15,122,63,0.2); }
.detail-badge.pending { background: rgba(232,185,49,0.08); color: #B8900F; border-color: rgba(232,185,49,0.2); }
.detail-body { padding: 16px 20px 20px; }
.detail-section { margin-bottom: 20px; }
.detail-section h4 { font-size: 0.8125rem; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.detail-section h4 i { font-size: 0.75rem; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 0.8125rem; }
.detail-row span:first-child { color: var(--text-light); }
.detail-row span:last-child { color: var(--text); font-weight: 500; text-align: right; max-width: 60%; }
.detail-source-desc { font-size: 0.75rem; color: var(--text-light); line-height: 1.6; margin-top: 8px; padding: 10px 12px; background: var(--bg-alt, rgba(15,122,63,0.03)); border-radius: var(--radius-md); }
.detail-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-top: 8px;
  background: rgba(15,122,63,0.06); border-radius: var(--radius-md); font-size: 0.8125rem;
  color: var(--primary); font-weight: 500; transition: all 0.2s;
}
.detail-link:hover { background: rgba(15,122,63,0.12); }
.detail-link i { font-size: 0.75rem; }

@media (max-width: 768px) {
  .map-legend, .map-detail-panel { width: calc(100% - 24px); left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 50vh; }
  .map-detail-panel { right: auto; }
}

/* ===== SHARE BUTTONS ===== */
.share-buttons { display: flex; gap: 12px; justify-content: center; }
.share-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(15,122,63,0.08); color: var(--primary);
  font-size: 1.125rem; transition: all 0.2s;
}
.share-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ===== WIZARD ===== */
.wizard-progress {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap;
}
.wizard-step {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: rgba(15,122,63,0.06); border-radius: var(--radius-xl); font-size: 0.875rem;
  font-weight: 500; color: var(--text-light); transition: all 0.3s;
}
.wizard-step.active { background: var(--gradient); color: #fff; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700;
  background: rgba(255,255,255,0.2); line-height: 1;
}
.wizard-panel { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== IMAGE PREVIEW ===== */
.image-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px;
}
.preview-thumb {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light);
  background: var(--bg);
}
.preview-thumb img { width: 100%; height: 100px; object-fit: cover; display: block; }
.preview-thumb .preview-name {
  padding: 6px 8px; font-size: 0.6875rem; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== AI REVIEW ===== */
.ai-review-spinner {
  display: flex; flex-direction: column; align-items: center; padding: 60px 20px; text-align: center;
}
.spinner {
  width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-review-spinner h3 { margin-bottom: 8px; }
.ai-review-spinner p { color: var(--text-secondary); }

.species-result {
  padding: 16px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 12px; transition: all 0.2s;
}
.species-result.top-match { border-color: var(--primary); background: rgba(15,122,63,0.03); }
.confidence-badge {
  padding: 4px 10px; border-radius: var(--radius-xl); font-size: 0.75rem; font-weight: 700;
}
.confidence-bar {
  height: 4px; background: var(--border-light); border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.confidence-bar div { height: 100%; border-radius: 2px; transition: width 0.5s ease; }

.quality-tips {
  padding: 20px; background: rgba(232,185,49,0.08); border: 1px solid rgba(232,185,49,0.2);
  border-radius: var(--radius-md); margin-top: 16px;
}
.quality-tips h4 { margin-bottom: 8px; }
.quality-tips ul { margin-left: 20px; list-style: disc; }
.quality-tips li { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 4px; }

/* ===== CONFIRM SUMMARY ===== */
.confirm-summary { padding: 24px; background: var(--bg); border-radius: var(--radius-md); }
.summary-row { padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.9375rem; }
.summary-row span:first-child { color: var(--text-light); margin-right: 8px; }

/* ===== PROFILE TABS ===== */
.profile-tabs {
  display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--border-light);
  padding-bottom: 0; flex-wrap: wrap;
}

/* ===== ANALYTICS CHART ===== */
.analytics-chart {
  display: flex; align-items: flex-end; gap: 16px; height: 200px;
  padding: 20px 0; justify-content: center;
}
.chart-bar-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-bar {
  width: 48px; background: var(--gradient); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 6px;
  font-size: 0.75rem; font-weight: 700; color: #fff; min-height: 24px;
}
.chart-label { font-size: 0.75rem; color: var(--text-light); }

/* ===== RECORD COUNT ===== */
.record-count {
  padding: 6px 14px; background: rgba(15,122,63,0.08); border-radius: var(--radius-xl);
  font-size: 0.8125rem; font-weight: 600; color: var(--primary);
}

/* ===== INTERNAL TOGGLE ===== */
.internal-toggle {
  display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
}
.internal-toggle input { accent-color: var(--primary); }

/* ===== MAP CONTAINER FIX ===== */
.full-map-container { min-height: calc(100vh - var(--nav-height)); height: auto; }
#fullMap { min-height: 600px; flex: 1; }

/* ===== DASHBOARD ENHANCEMENTS ===== */
.tab-btn {
  padding: 12px 24px; border: none; background: none; font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600; color: var(--text-light); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.tab-btn:hover { color: var(--primary); background: rgba(15,122,63,0.04); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(15,122,63,0.06); }

/* Dashboard filter selects */
.dashboard-filter, .page-content select {
  padding: 10px 16px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.875rem; color: var(--text);
  background: #fff; cursor: pointer; outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.dashboard-filter:focus, .page-content select:focus { border-color: var(--primary); }

/* Submission cards */
.submission-card {
  padding: 20px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 12px; background: #fff; transition: all 0.2s;
}
.submission-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(15,122,63,0.08); }
.submission-card h4 { font-size: 1rem; margin-bottom: 6px; }
.submission-card .meta { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; }
.submission-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Status badges */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-xl);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.status-badge.pending { background: rgba(232,185,49,0.15); color: #B8900F; }
.status-badge.verified { background: rgba(15,122,63,0.12); color: var(--primary); }
.status-badge.flagged { background: rgba(220,53,69,0.12); color: #dc3545; }
.status-badge.escalated { background: rgba(156,39,176,0.12); color: #9c27b0; }
.status-badge.rejected { background: rgba(108,117,125,0.12); color: #6c757d; }

/* Action buttons (small) */
.btn-sm {
  padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); background: #fff; font-family: var(--font-body);
  font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex;
  align-items: center; gap: 6px;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm.approve { color: var(--primary); border-color: var(--primary); }
.btn-sm.approve:hover { background: var(--primary); color: #fff; }
.btn-sm.reject { color: #dc3545; border-color: #dc3545; }
.btn-sm.reject:hover { background: #dc3545; color: #fff; }
.btn-sm.flag { color: #E8B931; border-color: #E8B931; }
.btn-sm.flag:hover { background: #E8B931; color: #fff; }

/* Contributor cards */
.contributor-card {
  padding: 20px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  background: #fff; display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.contributor-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 700; font-size: 1.125rem; flex-shrink: 0;
}
.contributor-info { flex: 1; }
.contributor-info h4 { margin-bottom: 2px; }
.contributor-info .role { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.contributor-stats { display: flex; gap: 16px; font-size: 0.8125rem; color: var(--text-light); }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-secondary);
  font-size: 0.9375rem;
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.3; display: block; }

/* Scientific review toolbar */
.sci-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}

/* Scientific record cards */
.sci-record {
  padding: 20px; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 16px; background: #fff;
}
.sci-record h4 { color: var(--primary); margin-bottom: 4px; }
.sci-record .sci-meta { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; }
.sci-fields {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light);
}
.sci-field label { display: block; font-size: 0.75rem; color: var(--text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.sci-field input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.875rem; font-family: var(--font-body); }

/* Profile page enhancements */
.profile-header {
  display: flex; align-items: center; gap: 24px; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border-light);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 2rem; font-weight: 700; flex-shrink: 0;
}
.profile-header h2 { margin-bottom: 4px; }
.profile-header .role-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-xl);
  background: rgba(15,122,63,0.1); color: var(--primary); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase;
}

/* Badge grid */
.badge-grid {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0;
}
.badge-item {
  padding: 10px 16px; border-radius: var(--radius-md); background: rgba(15,122,63,0.06);
  border: 1px solid var(--border-light); font-size: 0.875rem; display: flex;
  align-items: center; gap: 8px;
}
.badge-item.earned { background: rgba(15,122,63,0.12); border-color: var(--primary); font-weight: 600; }
.badge-item.locked { opacity: 0.4; }

/* Cards grid */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}

/* Login / Register forms */
.auth-form-card {
  max-width: 480px; margin: 0 auto; padding: 40px; background: #fff;
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.auth-form-card h2 { text-align: center; margin-bottom: 24px; }
.auth-form-card .form-group { margin-bottom: 20px; }
.auth-form-card .btn { width: 100%; justify-content: center; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Follow-up questions */
.followup-section {
  padding: 20px; background: rgba(232,185,49,0.06); border: 1px solid rgba(232,185,49,0.15);
  border-radius: var(--radius-md); margin-top: 20px;
}
.followup-section h4 { margin-bottom: 12px; color: #B8900F; }
.followup-question {
  margin-bottom: 12px;
}
.followup-question label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 6px; }
.followup-question select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.875rem;
}

/* Admin markers form */
.admin-form { max-width: 700px; margin: 0 auto; }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form .field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) { .admin-form .field-row { grid-template-columns: 1fr; } }

/* Sensitivity indicator */
.sensitivity-indicator {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: var(--radius-xl); font-size: 0.75rem; font-weight: 600;
}
.sensitivity-indicator.none { background: rgba(15,122,63,0.1); color: var(--primary); }
.sensitivity-indicator.community { background: rgba(232,185,49,0.15); color: #B8900F; }
.sensitivity-indicator.nation { background: rgba(220,53,69,0.12); color: #dc3545; }

/* Video section */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.video-card.main-video { grid-row: span 2; }
.video-placeholder { background: linear-gradient(135deg, #1a472a, #2d5a3f); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: rgba(255,255,255,0.8); text-align: center; gap: 16px; }
.video-placeholder i { font-size: 3rem; opacity: 0.7; }
.video-placeholder.small { padding: 40px 20px; }
.video-placeholder.small i { font-size: 2rem; }
.video-card h3 { padding: 16px 20px 4px; font-size: 1rem; }
.video-card p { padding: 0 20px 20px; font-size: 0.875rem; color: var(--text-secondary); }
@media (max-width: 768px) { .video-grid { grid-template-columns: 1fr; } .video-card.main-video { grid-row: auto; } }

/* Updates section */
.updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.update-card { padding: 28px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: #fff; }
.update-tag { font-size: 0.8125rem; font-weight: 600; margin-bottom: 12px; }
.update-card.spotlight { border-left: 4px solid var(--primary); }
.update-card.field { border-left: 4px solid var(--accent); }
.update-card.science { border-left: 4px solid #9c27b0; }
.update-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.update-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.update-date { font-size: 0.75rem; color: var(--text-light); margin-top: 12px; display: block; }
@media (max-width: 768px) { .updates-grid { grid-template-columns: 1fr; } }

/* Form field grid for upload */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .form-group { margin-bottom: 0; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.field-section-title { font-size: 0.9375rem; font-weight: 700; color: var(--primary); margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.field-section-title:first-child { margin-top: 0; }

/* Validation UI */
.validation-message { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 12px; font-size: 0.875rem; display: flex; align-items: flex-start; gap: 10px; }
.validation-message.error { background: rgba(220,53,69,0.08); border: 1px solid rgba(220,53,69,0.2); color: #dc3545; }
.validation-message.warning { background: rgba(232,185,49,0.08); border: 1px solid rgba(232,185,49,0.2); color: #B8900F; }
.validation-message.info { background: rgba(15,122,63,0.06); border: 1px solid rgba(15,122,63,0.15); color: var(--primary); }
.validation-message i { margin-top: 2px; flex-shrink: 0; }
.quality-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-xl); font-size: 0.75rem; font-weight: 700; }
.quality-badge.good { background: rgba(15,122,63,0.12); color: var(--primary); }
.quality-badge.acceptable { background: rgba(232,185,49,0.15); color: #B8900F; }
.quality-badge.poor { background: rgba(220,53,69,0.12); color: #dc3545; }

/* Route agent dropdown */
.route-agent { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.route-agent select { flex: 1; }
.route-agent .btn { white-space: nowrap; }

/* Community/visibility fields (conditional) */
.community-fields { padding: 16px; background: rgba(232,185,49,0.06); border: 1px solid rgba(232,185,49,0.12); border-radius: var(--radius-md); margin-top: 12px; }
.community-fields h4 { color: #B8900F; margin-bottom: 12px; font-size: 0.9375rem; }
.permission-statement { padding: 10px 16px; background: rgba(15,122,63,0.06); border-radius: var(--radius-md); font-size: 0.875rem; color: var(--text-secondary); margin-top: 8px; font-style: italic; }
