/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design System */
:root {
  --bg-primary: #040c08;
  --bg-secondary: #08160f;
  --card-bg: rgba(12, 33, 22, 0.65);
  --card-bg-hover: rgba(18, 47, 32, 0.85);
  --card-border: rgba(16, 185, 129, 0.15);
  --card-border-hover: rgba(16, 185, 129, 0.4);
  
  --accent-primary: #10b981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-primary-hover: #34d399;
  --accent-secondary: #eab308;
  --accent-secondary-rgb: 234, 179, 8;
  --accent-secondary-hover: #facc15;
  
  --rarity-common: #10b981;
  --rarity-endemic: #f59e0b;
  --rarity-rare: #ec4899;
  
  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #6b7280;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);
  --shadow-glow-strong: 0 0 30px rgba(16, 185, 129, 0.35);
  --shadow-card: 0 10px 40px 0 rgba(0, 0, 0, 0.6);
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Glassmorphism Panel Helper */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--card-border-hover);
}

/* Hero Section Styles */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(to bottom, rgba(4, 12, 8, 0.4), var(--bg-primary)), url('../assets/images/hero_background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 8rem 0 5rem 0;
}

/* Falling leaf micro-animation */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.logo-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.2));
  transition: var(--transition-bounce);
}

.hero-logo:hover {
  transform: scale(1.05);
}

.badge-resort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 3s infinite alternate;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff, #86efac, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.meta-item {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.meta-item span {
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Call to Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #020704;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Quick Search bar in Hero */
.search-container {
  position: relative;
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(8, 22, 15, 0.85);
  border: 2px solid var(--card-border);
  padding: 1.15rem 1.5rem 1.15rem 3.5rem;
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: var(--font-body);
  outline: none;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-primary);
  background: #08160f;
  box-shadow: var(--shadow-glow-strong);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Map Section Styles */
.map-section {
  background-color: var(--bg-secondary);
}

.map-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.map-visual-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  background: #06110b;
}

/* SVG Interactive Map styling */
.interactive-svg-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-zone {
  fill: rgba(16, 185, 129, 0.03);
  stroke: rgba(16, 185, 129, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-zone:hover, .map-zone.active {
  fill: rgba(16, 185, 129, 0.15);
  stroke: var(--accent-primary);
  stroke-dasharray: none;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.map-zone.active {
  fill: rgba(16, 185, 129, 0.22);
}

/* Spotting hotspots */
.map-hotspot {
  fill: var(--accent-secondary);
  cursor: pointer;
  animation: pulseHotspot 2s infinite;
  transform-origin: center;
  transition: var(--transition-smooth);
}

.map-hotspot:hover {
  fill: #ffffff;
  r: 10;
}

.map-label {
  font-family: var(--font-heading);
  font-weight: 700;
  fill: var(--text-primary);
  font-size: 11px;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.map-path {
  fill: none;
  stroke: rgba(234, 179, 8, 0.4);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
}

.map-water {
  fill: #0c333a;
  stroke: #164e63;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(22, 78, 99, 0.3));
}

/* Map Zone Info Panel */
.map-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.zone-detail-card {
  padding: 2rem;
}

.zone-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.zone-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-primary);
}

.zone-badge {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

.zone-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hotspots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hotspot-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 8px 8px 0;
}

.hotspot-icon {
  color: var(--accent-secondary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.hotspot-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

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

/* Wildlife Directory Styles */
.directory-controls {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #020704;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

/* Wildlife Grid and Cards */
.wildlife-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.wildlife-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #030a06;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.wildlife-card:hover .card-img {
  transform: scale(1.06);
}

/* Placeholder card styling */
.card-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a2517 0%, #030f0a 100%);
  color: var(--accent-primary);
  gap: 0.75rem;
}

.card-placeholder-img svg {
  opacity: 0.4;
}

.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.badge {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-rarity {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border-left: 3px solid #ccc;
}

.badge-rarity.endemic-rare {
  border-color: var(--rarity-rare);
  color: #fca5a5;
}
.badge-rarity.endemic {
  border-color: var(--rarity-endemic);
  color: #fde047;
}
.badge-rarity.common {
  border-color: var(--rarity-common);
  color: #a7f3d0;
}

.badge-category {
  background: var(--accent-primary);
  color: #020704;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-names {
  margin-bottom: 0.75rem;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.card-sinhala {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-top: 0.15rem;
}

.card-scientific {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-meta-item span {
  color: var(--text-secondary);
}

/* Sightings Logger & Dashboard */
.sightings-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.sighting-form-container {
  padding: 2rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.sightings-dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sighting Progress Tracker */
.progress-card {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.progress-info {
  flex-grow: 1;
}

.progress-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.progress-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.progress-counter {
  text-align: right;
  flex-shrink: 0;
}

.progress-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Sightings List Timeline */
.sightings-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.timeline-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.timeline-empty-icon {
  margin-bottom: 1rem;
  opacity: 0.3;
}

.sighting-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-left: 3px solid var(--accent-primary);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 12px 12px 0;
  position: relative;
  transition: var(--transition-smooth);
}

.sighting-item:hover {
  background: rgba(16, 185, 129, 0.05);
}

.sighting-img-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #030a06;
}

.sighting-content {
  flex-grow: 1;
}

.sighting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.sighting-species {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sighting-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sighting-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.sighting-notes {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.delete-sighting-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-smooth);
}

.sighting-item:hover .delete-sighting-btn {
  opacity: 1;
}

.delete-sighting-btn:hover {
  color: var(--rarity-rare);
}

/* Eco Guide Section */
.eco-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
}

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

.eco-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eco-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.eco-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.eco-hotline-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(234, 179, 8, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.eco-hotline-content {
  max-width: 600px;
}

.eco-hotline-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Modal Overlay Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 12, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid var(--card-border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--rarity-rare);
  border-color: var(--rarity-rare);
  transform: rotate(90deg);
}

/* Detail Modal Content Structure */
.detail-modal-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background-color: #030a06;
}

.detail-modal-body {
  padding: 2.5rem;
}

.modal-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
}

.modal-title-box h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.modal-scientific-sub {
  font-size: 1rem;
  color: var(--accent-secondary);
  font-style: italic;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.modal-grid-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.meta-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--accent-primary);
}

.meta-grid-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-grid-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.spotting-box {
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
}

.spotting-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.sound-player-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.sound-info {
  flex-grow: 1;
}

.sound-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

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

/* Waveform Visualizer Animation */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.wave-bar {
  width: 3px;
  background: var(--accent-primary);
  height: 5px;
  border-radius: 3px;
  transition: height 0.15s ease;
}

.waveform.active .wave-bar {
  animation: bounceWave 1.2s ease-in-out infinite alternate;
}

.waveform.active .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.waveform.active .wave-bar:nth-child(2) { animation-delay: 0.4s; }
.waveform.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform.active .wave-bar:nth-child(4) { animation-delay: 0.6s; }
.waveform.active .wave-bar:nth-child(5) { animation-delay: 0.3s; }
.waveform.active .wave-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform.active .wave-bar:nth-child(7) { animation-delay: 0.1s; }
.waveform.active .wave-bar:nth-child(8) { animation-delay: 0.7s; }

.btn-play-call {
  background: var(--accent-primary);
  color: #020704;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-glow);
}

.btn-play-call:hover {
  transform: scale(1.1);
  background: var(--accent-primary-hover);
}

/* Footer Section */
footer {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Keyframes Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
  }
  100% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.6);
  }
}

@keyframes pulseHotspot {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent-secondary));
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

@keyframes bounceWave {
  0% {
    height: 5px;
  }
  100% {
    height: 38px;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .map-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sightings-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .modal-grid-meta {
    grid-template-columns: 1fr;
  }
  .detail-modal-body {
    padding: 1.5rem;
  }
  .eco-hotline-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ===================================================
   Guest Account Navigation Bar & Auth Modal Styles
   =================================================== */
.guest-account-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(4, 12, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.7rem 0;
}

.guest-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guest-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guest-bar-actions,
.guest-bar-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-guest-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-guest-solid {
  background: var(--accent-primary);
  color: #020704;
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.btn-guest-solid:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-guest-outline {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-guest-outline:hover {
  background: rgba(16, 185, 129, 0.2);
}

.btn-guest-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-guest-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.guest-profile-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-right: 0.5rem;
}

.guest-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #020704;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.guest-profile-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.guest-profile-chalet {
  font-size: 0.72rem;
  color: var(--accent-secondary);
  font-weight: 600;
}

/* Sighting Form Account Banner */
.sighting-account-banner {
  margin-bottom: 1.25rem;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 10px;
}

.banner-active-user {
  border-left-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.banner-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.banner-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.btn-banner-auth {
  flex-shrink: 0;
  background: var(--accent-primary);
  color: #020704;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-banner-auth:hover {
  background: var(--accent-primary-hover);
}

.chalet-pill {
  display: inline-block;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: var(--accent-secondary);
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.35rem;
  font-weight: 600;
}

.spotter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Auth Modal Specifics */
.auth-modal-container {
  max-width: 480px;
  position: relative;
}

.auth-modal-body {
  padding: 2.25rem 2rem;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.auth-modal-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  background: var(--accent-primary);
  color: #020704;
  box-shadow: var(--shadow-glow);
}

.auth-error-box {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fbcfe8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .guest-bar-brand .guest-bar-title {
    font-size: 0.8rem;
  }
  #register-form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Main Page Tabs, Homepage Sightings Showcase & Gallery Tab
   ========================================================= */
.guest-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-page-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.page-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.page-tab-btn.active {
  background: var(--accent-primary);
  color: #020704;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.tab-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(234, 179, 8, 0.2);
  color: var(--accent-secondary);
}

.page-tab-btn.active .tab-count-pill {
  background: #020704;
  color: var(--accent-primary);
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Homepage Sightings Showcase */
.homepage-showcase-wrapper {
  margin-top: 2.5rem;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(160deg, rgba(12, 33, 22, 0.8) 0%, rgba(5, 16, 11, 0.9) 100%);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.showcase-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 0.35rem;
}

.showcase-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.showcase-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.showcase-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.showcase-mini-stats {
  display: flex;
  gap: 0.75rem;
}

.mini-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  min-width: 82px;
}

.mini-stat-pill strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
}

.mini-stat-pill span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Large Visual Sighting Gallery Cards Grid */
.sightings-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.sighting-gallery-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 22, 15, 0.85);
  border: 1px solid var(--card-border);
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.sighting-gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.sg-card-media {
  position: relative;
  height: 210px;
  background: #030a06;
  overflow: hidden;
}

.sg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sighting-gallery-card:hover .sg-card-img {
  transform: scale(1.06);
}

.sg-card-top-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.sg-zone-pill {
  background: rgba(4, 12, 8, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.sg-photo-badge {
  background: rgba(234, 179, 8, 0.9);
  color: #020704;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.sg-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sg-species-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.sg-species-sub {
  font-size: 0.82rem;
  color: var(--accent-secondary);
  margin-bottom: 0.85rem;
}

.sg-notes-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--accent-primary);
  padding: 0.7rem 0.9rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.sg-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.sg-spotter-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sg-spotter-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sg-spotter-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sg-spotter-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sg-spotter-chalet {
  font-size: 0.7rem;
  color: var(--accent-secondary);
}

.sg-timestamp {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: right;
}

/* Dedicated All Sightings Tab Layout */
.sightings-tab-hero {
  padding: 3.5rem 0 5rem 0;
  min-height: 80vh;
}

.sightings-tab-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sightings-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sighting-stat-card {
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.sightings-filter-bar {
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sightings-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sightings-search-box {
  flex: 1;
  min-width: 250px;
  max-width: 360px;
}

@media (max-width: 768px) {
  .homepage-showcase-wrapper {
    padding: 1.5rem;
  }
  .sightings-search-box {
    max-width: 100%;
  }
}

/* =========================================================
   Admin Control Center (Analytics, Users, Content)
   ========================================================= */
.admin-dashboard-section {
  padding: 3.5rem 0 5rem 0;
  min-height: 85vh;
  background: var(--bg-secondary);
}

.admin-nav-tab {
  color: var(--accent-secondary) !important;
}

.admin-nav-tab.active {
  background: var(--accent-secondary) !important;
  color: #020704 !important;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem;
  margin-bottom: 2rem;
  border-radius: 14px;
}

.admin-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.admin-subtab-btn.active {
  background: var(--accent-primary);
  color: #020704;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.admin-card-block {
  padding: 1.75rem 2rem;
}

.admin-block-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* 14-Day Activity Bar Chart */
.admin-trend-chart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 0.5rem;
  align-items: end;
  height: 180px;
  padding-top: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.35rem;
}

.trend-bars-pair {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 130px;
  width: 100%;
  justify-content: center;
}

.trend-bar {
  width: 10px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
}

.trend-bar.views {
  background: var(--accent-primary);
}

.trend-bar.sightings {
  background: var(--accent-secondary);
}

.trend-day-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-analytics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.admin-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.admin-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 100px;
  overflow: hidden;
}

.admin-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 100px;
}

.admin-events-log {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.admin-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  border-left: 3px solid var(--accent-primary);
  font-size: 0.82rem;
}

/* Users & Admins Management Layout */
.admin-users-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 0.85rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
}

.admin-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(16, 185, 129, 0.04);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.role-badge.admin {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: var(--accent-secondary);
}

.role-badge.guest {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.status-pill.suspended {
  background: rgba(236, 72, 153, 0.18);
  color: #f9a8d4;
}

.admin-action-btns {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-table-act {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-table-act:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.btn-table-act.danger:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--rarity-rare);
  color: #fbcfe8;
}

@media (max-width: 1024px) {
  .admin-analytics-two-col,
  .admin-users-layout {
    grid-template-columns: 1fr;
  }
}



