
.mobile-header {
  display: none;
}
/* ============================================== */
/*  CONSOLIDATED PORTAL MAIN STYLESHEET          */
/* ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Global Colors */
  --bg-deep-black: #05080c;
  --border-glass: rgba(16, 185, 129, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* AQI Specific Variables */
  --bg-primary: #0b0f19;
  --bg-secondary: #121826;
  --bg-card: rgba(22, 30, 49, 0.6);
  --bg-card-hover: rgba(28, 38, 62, 0.8);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --aqi-good: #10b981;
  --aqi-moderate: #f59e0b;
  --aqi-unhealthy-sensitive: #ef4444;
  --aqi-unhealthy: #dc2626;
  --aqi-very-unhealthy: #8b5cf6;
  --aqi-hazardous: #7f1d1d;
  
  --theme-color: var(--aqi-good);
  --theme-glow: rgba(16, 185, 129, 0.15);
  
  /* Ecological Atlas Variables */
  --color-greenery: #10b981;
  --color-erosion: #d97706;
  --color-species: #ef4444;
  --color-accent: #f59e0b;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ============================================== */
/*  FIXED LEFT SIDEBAR NAVIGATION PANELS         */
/* ============================================== */

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: rgba(10, 16, 26, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-icon-wind {
  font-size: 1.8rem;
  color: var(--color-greenery);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

.sidebar-logo h1 {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-logo p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  flex-grow: 1;
}

.sidebar-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  transition: var(--transition-smooth);
  text-align: left;
}

.sidebar-nav-btn i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.sidebar-nav-btn.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-greenery);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.05);
}

.sidebar-nav-btn.active i {
  color: var(--color-greenery);
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  text-align: center;
}

.version-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-greenery);
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.sidebar-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================== */
/*  MAIN CONTENT PANELS CONTROLLER LAYOUTS        */
/* ============================================== */

.main-content-area {
  margin-left: 260px;
  min-height: 100vh;
  position: relative;
}

.portal-panel {
  display: block;
  min-height: 100vh;
}

.hidden-panel {
  display: none !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #05080c;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* ============================================== */
/*  SECTION 1: ORIGINAL LIVE AQI STYLING SCRIPTS  */
/* ============================================== */

#section-aqi {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
  padding: 24px;
}

#section-aqi header.aqi-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 25px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

#section-aqi .dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  margin-bottom: 24px;
}

#section-aqi .card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
}

#section-aqi .card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

#section-aqi .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

/* AQI Dial items */
#section-aqi .current-aqi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#section-aqi .aqi-radial-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 20px 0;
}

#section-aqi .aqi-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

#section-aqi .aqi-svg-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 14;
}

#section-aqi .aqi-svg-circle-fill {
  fill: none;
  stroke: var(--theme-color);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s ease;
  filter: drop-shadow(0 0 6px var(--theme-glow));
}

#section-aqi .aqi-value-display {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#section-aqi .aqi-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#section-aqi .aqi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 4px;
}

#section-aqi .aqi-status-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--theme-color);
  text-shadow: 0 0 15px var(--theme-glow);
  margin-bottom: 8px;
}

#section-aqi .aqi-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin-bottom: 20px;
}

#section-aqi .meta-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

#section-aqi .meta-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

#section-aqi .meta-stat-item i {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

#section-aqi .meta-stat-val {
  font-size: 0.95rem;
  font-weight: 600;
}

#section-aqi .meta-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Selector and badge */
#section-aqi .city-selector-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  position: relative;
}

#section-aqi .city-selector-container select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding-right: 24px;
  appearance: none;
}

#section-aqi .city-selector-container select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

#section-aqi .city-selector-container::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 18px;
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

#section-aqi .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--theme-color);
  border-radius: 50%;
  animation: pulse-glow-dot 2s infinite;
}

#section-aqi .settings-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

#section-aqi .settings-btn:hover {
  border-color: var(--theme-color);
  color: #fff;
  box-shadow: 0 0 10px var(--theme-glow);
}

#section-aqi .status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

#section-aqi .current-pollutants-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

#section-aqi .pollutant-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

#section-aqi .pollutant-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

#section-aqi .pollutant-name-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

#section-aqi .pollutant-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#section-aqi .pollutant-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

#section-aqi .pollutant-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

#section-aqi .pollutant-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: auto;
}

#section-aqi .pollutant-bar-fill {
  height: 100%;
  background: var(--aqi-good);
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s ease-out, background-color 0.5s ease;
}

#section-aqi .health-guidelines-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#section-aqi .guideline-item {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  align-items: flex-start;
}

#section-aqi .guideline-icon-wrapper {
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-color);
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#section-aqi .guideline-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

#section-aqi .guideline-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

#section-aqi .ai-insights-box {
  margin-top: 20px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 16px;
}

#section-aqi .ai-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#section-aqi .ai-insights-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-greenery);
}

#section-aqi .ai-insights-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

#section-aqi .icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

#section-aqi .icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forecast section */
#section-aqi .forecast-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

#section-aqi .tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

#section-aqi .tab-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#section-aqi .tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

#section-aqi .tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#section-aqi .tab-content {
  display: none;
  position: relative;
  min-height: 320px;
}

#section-aqi .tab-content.active {
  display: block;
}

#section-aqi .chart-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
}

#section-aqi .seasonal-info-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#section-aqi .seasonal-info-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-color);
}

#section-aqi .seasonal-info-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

#section-aqi .seasonal-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

#section-aqi .seasonal-phase-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

#section-aqi .seasonal-phase-card:hover, #section-aqi .seasonal-phase-card.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--theme-color);
}

#section-aqi .seasonal-phase-card.active {
  box-shadow: 0 4px 15px var(--theme-glow);
}

#section-aqi .seasonal-phase-card .phase-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

#section-aqi .seasonal-phase-card .phase-months {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

#section-aqi .seasonal-phase-card .phase-aqi {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Station Explorer Section */
#section-aqi .stations-section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

#section-aqi .stations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#section-aqi .station-item-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text-primary);
  text-align: left;
  font-family: var(--font-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

#section-aqi .station-item-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

#section-aqi .station-item-btn.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--theme-color);
  box-shadow: 0 4px 15px var(--theme-glow);
}

#section-aqi .station-info h4 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

#section-aqi .station-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

#section-aqi .station-badge-val {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

#section-aqi .station-details-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#section-aqi .station-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

#section-aqi .station-details-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

#section-aqi .station-details-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

#section-aqi .station-factors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

#section-aqi .station-factor-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

#section-aqi .station-factor-card h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#section-aqi .station-factor-card h5 i {
  color: var(--theme-color);
}

#section-aqi .station-factor-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

#section-aqi .station-comparison-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#section-aqi .comparison-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

#section-aqi .comparison-slider-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
}

#section-aqi .comparison-slider-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--theme-color);
  border: 2px solid #fff;
  box-shadow: 0 0 10px var(--theme-glow);
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#section-aqi .comparison-avg-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
}

#section-aqi .explanatory-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.4) 0%, rgba(22, 30, 49, 0.8) 100%);
  border: 1px solid var(--border-color);
}

#section-aqi .explanatory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

#section-aqi .explanatory-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

#section-aqi .explanatory-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

#section-aqi footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 24px;
}

#section-aqi footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#section-aqi footer a {
  color: var(--theme-color);
  text-decoration: none;
}

#section-aqi .settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 24px;
  color: var(--text-primary);
}

#section-aqi .settings-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

#section-aqi .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

#section-aqi .modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

#section-aqi .close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

#section-aqi .modal-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

#section-aqi .input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

#section-aqi .input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

#section-aqi .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#section-aqi .input-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  outline: none;
}

#section-aqi .input-wrapper input:focus {
  border-color: var(--theme-color);
}

#section-aqi #toggle-key-visibility {
  position: absolute;
  right: 10px;
  color: var(--text-secondary);
}

#section-aqi .api-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

#section-aqi .api-help-text a {
  color: var(--theme-color);
  text-decoration: none;
}

#section-aqi .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

#section-aqi .btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

#section-aqi .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

#section-aqi .btn-primary {
  background: var(--theme-color);
  color: #0b0f19;
}

/* Floating AI Chat */
#section-aqi .floating-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#section-aqi .chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--theme-color);
  color: #0b0f19;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--theme-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.35rem;
  position: relative;
  transition: var(--transition-smooth);
}

#section-aqi .chat-toggle-btn:hover {
  transform: scale(1.05);
}

#section-aqi .chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #0b0f19;
}

#section-aqi .chat-window {
  display: none;
  width: 350px;
  height: 480px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 12px;
  overflow: hidden;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

#section-aqi .chat-window.active {
  display: flex;
}

#section-aqi .chat-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#section-aqi .chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

#section-aqi .chat-header-title i {
  color: var(--theme-color);
}

#section-aqi .chat-header-title h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

#section-aqi .chat-header-title span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

#section-aqi .chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.35rem;
  cursor: pointer;
}

#section-aqi .chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#section-aqi .message {
  display: flex;
  max-width: 85%;
}

#section-aqi .message.model {
  align-self: flex-start;
}

#section-aqi .message.user {
  align-self: flex-end;
}

#section-aqi .message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

#section-aqi .message.model .message-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-bottom-left-radius: 2px;
}

#section-aqi .message.user .message-content {
  background: var(--theme-color);
  color: #0b0f19;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}

#section-aqi .chat-input-area {
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
}

#section-aqi .chat-input-area input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-size: 0.85rem;
}

#section-aqi .chat-input-area input:focus {
  border-color: var(--theme-color);
}

#section-aqi .chat-input-area button {
  background: var(--theme-color);
  color: #0b0f19;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

/* ============================================== */
/*  SECTION 2: D3 MAP ECOLOGICAL ATLAS STYLING    */
/* ============================================== */

#section-eco {
  background-color: #0b110e;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 40%);
  padding: 24px;
}

#section-eco header.eco-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  margin-bottom: 24px;
}

#section-eco .eco-dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  min-height: 800px;
}

#section-eco .card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

#section-eco .card:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

#section-eco .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

#section-eco .panel-title h2 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

#section-eco .panel-title p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

#section-eco .metric-toggles {
  display: flex;
  background: rgba(11, 17, 14, 0.6);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

#section-eco .metric-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

#section-eco .metric-btn:hover {
  color: #fff;
}

#section-eco .metric-btn.active[data-metric="greenery"] {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-greenery);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

#section-eco .metric-btn.active[data-metric="erosion"] {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

#section-eco .metric-btn.active[data-metric="species"] {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

#section-eco .map-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#section-eco .map-visualization {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  position: relative;
}

#india-svg-map {
  width: 100%;
  height: 100%;
  max-height: 680px;
  cursor: grab;
}

#india-svg-map:active {
  cursor: grabbing;
}

.state-path {
  fill: #19271e;
  stroke: rgba(15, 25, 18, 0.6);
  stroke-width: 0.8;
  transition: fill 0.4s ease, stroke var(--transition-smooth), stroke-width var(--transition-smooth);
  cursor: pointer;
}

.state-path:hover {
  stroke: #ffffff;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.state-path.selected-state {
  stroke: var(--color-accent);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

#section-eco .map-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 17, 14, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#section-eco .legend-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
}

#section-eco .legend-scale {
  height: 10px;
  width: 140px;
  border-radius: 4px;
}

#section-eco .legend-scale.greenery {
  background: linear-gradient(to right, #065f46, #10b981, #84cc16, #eab308, #ef4444);
}
#section-eco .legend-scale.erosion {
  background: linear-gradient(to right, #1a202c, #7b341e, #d97706, #f59e0b);
}
#section-eco .legend-scale.species {
  background: linear-gradient(to right, #1c1c1c, #5c1e23, #991b1b, #ef4444);
}

#section-eco .legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

#section-eco .map-overlay-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(11, 17, 14, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#section-eco .overlay-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
}

#section-eco .overlay-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#section-eco .overlay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

#section-eco .overlay-option input {
  display: none;
}

#section-eco .overlay-checkbox-custom {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  display: inline-block;
  position: relative;
  transition: var(--transition-smooth);
}

#section-eco .overlay-option input:checked + .overlay-checkbox-custom {
  background: var(--color-greenery);
  border-color: var(--color-greenery);
}

#section-eco .overlay-option input:checked + .overlay-checkbox-custom::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 3.5px;
  height: 7px;
  border: solid #0b110e;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

#section-eco .icon-ganges {
  color: #0ea5e9;
}

#section-eco .icon-aqi {
  color: #ef4444;
}

/* Ganges route path & node markers on the D3 map */
#section-eco .ganges-route-group {
  pointer-events: none;
}

#section-eco .ganges-route-line {
  fill: none;
  stroke: #0ea5e9;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.6));
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

#section-eco .ganges-route-dash {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 10, 30;
  opacity: 0.9;
}

#section-eco .ganges-map-node {
  cursor: pointer;
  pointer-events: all;
}

#section-eco .ganges-map-node circle.node-dot {
  fill: #0ea5e9;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: r var(--transition-smooth);
}

#section-eco .ganges-map-node:hover circle.node-dot {
  r: 7.5;
}

#section-eco .ganges-map-node circle.node-pulse {
  fill: rgba(14, 165, 233, 0.25);
  animation: ripple 2s infinite ease-out;
}

/* AQI Destinations markers on the D3 map */
#section-eco .aqi-spots-group {
  pointer-events: none;
}

#section-eco .aqi-map-node {
  cursor: pointer;
  pointer-events: all;
}

#section-eco .aqi-map-node circle.aqi-dot {
  fill: #ef4444;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: r var(--transition-smooth), fill var(--transition-smooth);
}

#section-eco .aqi-map-node:hover circle.aqi-dot {
  r: 6.5;
  fill: #f43f5e;
}

#section-eco .aqi-map-node circle.aqi-pulse {
  fill: rgba(239, 68, 68, 0.2);
  animation: ripple-aqi 2s infinite ease-out;
}

/* Animations */
@keyframes ripple {
  0% {
    r: 6px;
    opacity: 1;
  }
  100% {
    r: 18px;
    opacity: 0;
  }
}

@keyframes ripple-aqi {
  0% {
    r: 4px;
    opacity: 1;
  }
  100% {
    r: 14px;
    opacity: 0;
  }
}


#section-eco .state-search-select {
  background: rgba(11, 17, 14, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 16px 10px 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  width: 240px;
}

#section-eco .info-modal-trigger {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-greenery);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

#section-eco .info-modal-trigger:hover {
  background: var(--color-greenery);
  color: #0b110e;
}

#section-eco .state-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

#section-eco .state-title-block h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

#section-eco .state-title-block p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

#section-eco .alert-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

#section-eco .alert-indicator.low-risk {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--color-greenery);
}

#section-eco .alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse-glow-dot 1.5s infinite;
}

#section-eco .metrics-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

#section-eco .number-card {
  background: rgba(11, 17, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: var(--transition-smooth);
}

#section-eco .number-card .value {
  font-size: 1.7rem;
  font-weight: 800;
}

#section-eco .number-card.metric-greenery .value {
  color: var(--color-greenery);
}
#section-eco .number-card.metric-erosion .value {
  color: var(--color-erosion);
}
#section-eco .number-card.metric-species .value {
  color: var(--color-species);
}

#section-eco .number-card .subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
}

#section-eco .timeline-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

#section-eco .play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-greenery);
  color: #0b110e;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

#section-eco .play-btn:hover {
  transform: scale(1.08);
}

#section-eco .timeline-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#section-eco .active-year-display {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-accent);
}

#section-eco .timeline-slider {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.15);
  outline: none;
  cursor: pointer;
}

#section-eco .timeline-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #0b110e;
  box-shadow: 0 0 8px var(--color-accent);
}

#section-eco .slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

#section-eco .tick-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

#section-eco .tick-label.active {
  color: #fff;
}

#section-eco .species-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#section-eco .species-tabs {
  display: flex;
  background: rgba(11, 17, 14, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 2px;
}

#section-eco .species-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#section-eco .species-tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#section-eco .species-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

#section-eco .species-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 17, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 10px 14px;
}

#section-eco .species-sci-name {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-secondary);
}

#section-eco .species-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
}

#section-eco .status-extinct {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

#section-eco .status-crit-endangered {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

#section-eco .status-threatened {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

#section-eco .status-rare {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.d3-tooltip {
  position: absolute;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.75rem;
  background: rgba(11, 17, 14, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  color: #fff;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.d3-tooltip h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

#section-eco .info-dialog {
  background: #0f1913;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  max-width: 650px;
  width: 90%;
  margin: auto;
  padding: 24px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

#section-eco .info-dialog::backdrop {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}

#section-eco .dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

#section-eco .dialog-body {
  font-size: 0.9rem;
  max-height: 400px;
  overflow-y: auto;
}

#section-eco .dialog-body h4 {
  margin-top: 16px;
  color: #fff;
}

/* ============================================== */
/*  SECTION 3: ANDROID MOBILE APP LANDING PAGE   */
/* ============================================== */

#section-app {
  background-color: #080c10;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(26, 38, 57, 0.1) 0%, transparent 70%);
  padding: 60px 40px;
}

.app-landing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.app-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .app-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.app-hero-text h2 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #a3b8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  line-height: 1.1;
}

.app-hero-text .tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-greenery);
  margin-bottom: 24px;
}

.app-hero-text .description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.app-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.highlight-item i {
  color: var(--color-greenery);
  font-size: 1.1rem;
  margin-top: 3px;
}

.apk-download-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(10px);
}

@media (max-width: 576px) {
  .apk-download-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-greenery);
  color: #080c10;
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  animation: pulse-btn 2.5s infinite;
}

.download-button:hover {
  transform: scale(1.03);
  background: #34d399;
}

.apk-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Phone Mockup Styling */
.app-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 570px;
  background: #1e293b;
  border: 10px solid #0f172a;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 0 4px #334155;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 24px;
  background: #0f172a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 20;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0b0f19;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 36px;
  padding: 12px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  z-index: 10;
}

.phone-header i {
  margin-left: 4px;
}

.phone-app-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.phone-app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.phone-app-title i {
  color: var(--aqi-hazardous);
}

.phone-city-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.phone-city-tag i {
  color: var(--color-greenery);
}

.phone-radial {
  margin: 10px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.02);
  border-top-color: var(--aqi-hazardous);
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-radial-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-aqi-val {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.phone-aqi-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--aqi-hazardous);
}

.phone-pollutants {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 10px;
}

.phone-pol-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.phone-pol-val {
  font-weight: 600;
  color: #fff;
}

.phone-alert-card {
  background: rgba(127, 29, 29, 0.15);
  border: 1px solid rgba(127, 29, 29, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
}

.phone-alert-card h5 {
  font-size: 0.75rem;
  color: #fca5a5;
  margin-bottom: 4px;
}

.phone-alert-card p {
  font-size: 0.65rem;
  color: #f87171;
  line-height: 1.3;
}

/* ============================================== */
/*  COMMON ANIMATIONS                            */
/* ============================================== */

@keyframes pulse-glow-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--theme-glow);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulse-btn {
  0% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.5);
  }
  100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
  }
}


/* ============================================== */
/*  SECTION 4: PULSE OF THE GANGES STYLING        */
/* ============================================== */

#section-ganges /* Design Tokens */
:root {
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --color-bg-base: #030712;
  --color-bg-surface: rgba(17, 24, 39, 0.7);
  --color-border-card: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(20, 184, 166, 0.25);
  
  --color-primary: #14b8a6; /* Teal */
  --color-secondary: #0ea5e9; /* Blue */
  --color-gold: #f59e0b; /* Amber */
  --color-gold-glow: rgba(245, 158, 11, 0.4);
  --color-emerald: #10b981; /* Green */
  --color-red: #ef4444; /* Alert */
  
  --color-text-primary: #f9fafb;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;
  
  --blur-card: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#section-ganges /* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#section-ganges {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

#section-ganges /* Background River Wave Animation */
.river-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(20, 184, 166, 0.06) 0%, transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

#section-ganges /* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

#section-ganges ::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}

#section-ganges ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

#section-ganges ::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

#section-ganges /* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

#section-ganges .header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#section-ganges .logo-circle {
  width: 42px;
  height: 42px;
}

#section-ganges .logo-svg {
  width: 100%;
  height: 100%;
}

#section-ganges .logo-wave {
  animation: logoFlow 3s infinite ease-in-out;
}

#section-ganges .logo-wave.delay {
  animation-delay: 1.5s;
}

@keyframes logoFlow {
  0%, 100% { d: path("M 25 50 Q 37.5 40 50 50 T 75 50"); }
  50% { d: path("M 25 50 Q 37.5 60 50 50 T 75 50"); }
}

#section-ganges .logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#section-ganges .tagline {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

#section-ganges /* Control Buttons */
.control-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-card);
  color: var(--color-text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#section-ganges .control-btn:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.2);
}

#section-ganges .sound-wave-icon {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  width: 14px;
  height: 12px;
}

#section-ganges .sound-wave-icon span {
  display: inline-block;
  width: 2px;
  height: 3px;
  background-color: var(--color-text-secondary);
  border-radius: 1px;
  transition: var(--transition-smooth);
}

#section-ganges .sound-wave-active .sound-wave-icon span {
  background-color: var(--color-primary);
  animation: wavePulse 1.2s infinite ease-in-out;
}

#section-ganges .sound-wave-active .sound-wave-icon span:nth-child(1) { animation-delay: 0.1s; }

#section-ganges .sound-wave-active .sound-wave-icon span:nth-child(2) { animation-delay: 0.4s; }

#section-ganges .sound-wave-active .sound-wave-icon span:nth-child(3) { animation-delay: 0.2s; }

#section-ganges .sound-wave-active .sound-wave-icon span:nth-child(4) { animation-delay: 0.5s; }

@keyframes wavePulse {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

#section-ganges /* Main Container Layout */
.ganges-main-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.15fr 1.35fr;
  gap: 1.5rem;
  flex: 1;
  height: calc(100vh - 80px);
  overflow: hidden;
}

#section-ganges /* Glassmorphism Cards/Panels */
.panel {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-card);
  backdrop-filter: blur(var(--blur-card));
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  height: 100%;
  overflow: hidden;
}

#section-ganges .panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

#section-ganges .panel-header {
  margin-bottom: 1.5rem;
}

#section-ganges .panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text-primary);
}

#section-ganges .panel-header p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

#section-ganges /* Map Wrapper & SVG styling */
.map-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, rgba(3, 7, 18, 0.4) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#section-ganges .river-map {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

#section-ganges /* River Path Animations */
.river-flow-line {
  filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.4));
}

#section-ganges .river-flow-dash {
  animation: dashFlow 12s infinite linear;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -300;
  }
}

#section-ganges /* Map Nodes Styling */
.map-node {
  cursor: pointer;
}

#section-ganges .node-pulse {
  fill: var(--color-primary);
  fill-opacity: 0.15;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  transform-origin: center;
  animation: nodeGlow 2.5s infinite ease-out;
  transition: var(--transition-smooth);
}

#section-ganges .node-dot {
  fill: var(--color-primary);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

#section-ganges .node-dot.gold-dot {
  fill: var(--color-gold);
}

#section-ganges .node-label {
  font-size: 11px;
  font-weight: 500;
  fill: var(--color-text-secondary);
  user-select: none;
  pointer-events: none;
  transition: var(--transition-smooth);
}

#section-ganges .node-label.main-station {
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--color-text-primary);
}

#section-ganges /* Left side alignment labels */
.node-label.left-align {
  text-anchor: end;
}

#section-ganges /* Map Node Hover and Selection states */
.map-node:hover .node-dot {
  fill: var(--color-gold);
  r: 10px;
  stroke-width: 2px;
}

#section-ganges .map-node:hover .node-label {
  fill: var(--color-text-primary);
  font-weight: 600;
}

#section-ganges .map-node.selected .node-dot {
  fill: var(--color-gold);
  r: 11px;
  stroke: var(--color-text-primary);
  stroke-width: 2.5px;
}

#section-ganges .map-node.selected .node-pulse {
  fill: var(--color-gold);
  stroke: var(--color-gold);
  animation: nodeGlowSelect 1.5s infinite ease-out;
}

#section-ganges .map-node.selected .node-label {
  fill: var(--color-gold);
  font-weight: 700;
}

@keyframes nodeGlow {
  0% {
    r: 6px;
    opacity: 1;
    stroke-width: 1px;
  }
  100% {
    r: 22px;
    opacity: 0;
    stroke-width: 0.5px;
  }
}

@keyframes nodeGlowSelect {
  0% {
    r: 8px;
    opacity: 1;
    stroke-width: 2px;
  }
  100% {
    r: 26px;
    opacity: 0;
    stroke-width: 0.5px;
  }
}

#section-ganges .bay-indicator {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  font-weight: 600;
}

#section-ganges /* Dashboard Panel Layout */
.dashboard-panel {
  gap: 1.2rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

#section-ganges .active-location-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

#section-ganges .subtitle-indicator {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  font-weight: 600;
}

#section-ganges .active-location-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0.2rem;
  color: var(--color-text-primary);
}

#section-ganges .loc-coords {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-family: monospace;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#section-ganges /* Season Selector Control */
.season-selector-wrapper {
  display: flex;
}

#section-ganges .season-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-card);
  padding: 0.25rem;
  border-radius: 12px;
  width: 100%;
}

#section-ganges .season-tab {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-secondary);
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

#section-ganges .season-tab:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.02);
}

#section-ganges .season-tab.active {
  color: var(--color-bg-base);
  background: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

#section-ganges .season-tab.active[data-season="summer"] {
  background: var(--color-gold);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#section-ganges .season-tab.active[data-season="monsoon"] {
  background: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

#section-ganges /* Metrics Grid & Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
}

#section-ganges .metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

#section-ganges .metric-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

#section-ganges .metric-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#section-ganges /* Circular Water Health Gauge */
.main-gauge-card {
  grid-row: span 4;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

#section-ganges .e-coli-card {
  grid-column: span 2;
}

#section-ganges .circular-gauge-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 1rem 0;
}

#section-ganges .circular-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#section-ganges .gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8;
}

#section-ganges .gauge-fill {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 60; /* Adjusted dynamically in JS */
  transition: stroke-dashoffset 1s ease-in-out, stroke 1s ease-in-out;
  filter: drop-shadow(0 0 4px var(--color-primary));
}

#section-ganges .gauge-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}

#section-ganges .gauge-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

#section-ganges .gauge-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#section-ganges .gauge-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

#section-ganges /* Linear gauges (Flow Rate, #section-ganges Dissolved Oxygen, #section-ganges Turbidity) */
.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

#section-ganges .metric-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

#section-ganges .linear-gauge {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.4rem 0 0.5rem 0;
}

#section-ganges .linear-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  border-radius: 3px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#section-ganges .linear-gauge-fill.warning-fill {
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

#section-ganges .linear-gauge-fill.alert-fill {
  background: linear-gradient(90deg, var(--color-gold), var(--color-red));
}

#section-ganges .metric-status {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

#section-ganges /* Secondary Panels Grid (Eco and Spiritual) */
.sub-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

#section-ganges .panel-icon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#section-ganges .panel-icon {
  font-size: 1.2rem;
}

#section-ganges .sub-panel {
  padding: 1.2rem;
  justify-content: flex-start;
}

#section-ganges /* Radar/Sonar Circle for Dolphins */
.radar-box {
  position: relative;
  height: 90px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

#section-ganges .sonar-wave {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.3);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  animation: sonarPulse 2s infinite linear;
}

#section-ganges .sonar-core {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-primary);
  z-index: 2;
}

@keyframes sonarPulse {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

#section-ganges .radar-reading {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
}

#section-ganges .radar-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#section-ganges .radar-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

#section-ganges .metric-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 0.6rem;
  margin-top: auto;
}

#section-ganges .metric-info-row strong {
  color: var(--color-text-primary);
}

#section-ganges /* Aarti Panel Lamp Flame Animation */
.aarti-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.8rem;
  height: 90px;
  position: relative;
}

#section-ganges .aarti-animation-box {
  width: 60px;
  height: 45px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

#section-ganges .lamp-base {
  width: 24px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 2;
}

#section-ganges .flame {
  width: 14px;
  height: 24px;
  background: linear-gradient(to top, var(--color-red), var(--color-gold), rgba(255, 236, 179, 0.9));
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  position: absolute;
  bottom: 5px;
  transform-origin: bottom center;
  filter: drop-shadow(0 0 6px var(--color-gold));
  opacity: 0;
  transition: opacity 0.5s ease;
}

#section-ganges .flame.active {
  opacity: 1;
  animation: flicker 0.15s infinite alternate ease-in-out, swell 2s infinite alternate ease-in-out;
}

@keyframes flicker {
  0% { transform: scaleX(0.9) rotate(-2deg); }
  100% { transform: scaleX(1.1) rotate(2deg); }
}

@keyframes swell {
  0% { height: 22px; filter: drop-shadow(0 0 4px var(--color-gold)); }
  100% { height: 26px; filter: drop-shadow(0 0 10px var(--color-gold)); }
}

#section-ganges .aarti-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: var(--transition-smooth);
  z-index: 3;
}

#section-ganges .aarti-btn:hover {
  background: var(--color-gold);
  color: var(--color-bg-base);
  box-shadow: 0 0 8px var(--color-gold-glow);
}

#section-ganges .aarti-btn.performing {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: var(--color-bg-base);
  animation: pulseButton 1s infinite alternate;
}

@keyframes pulseButton {
  from { box-shadow: 0 0 2px var(--color-emerald); }
  to { box-shadow: 0 0 10px var(--color-emerald); }
}

#section-ganges .margin-top-sm {
  margin-top: 0.6rem;
}

#section-ganges /* Chronicle Card & Read More Button */
.chronicle-card {
  padding: 1.5rem;
  gap: 0.75rem;
}

#section-ganges .chronicle-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

#section-ganges .read-more-btn {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0.2rem 0;
  width: fit-content;
  border-bottom: 1px dashed var(--color-primary);
  transition: var(--transition-smooth);
}

#section-ganges .read-more-btn:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-text-primary);
}

#section-ganges /* Modal Dialog Styles */
.details-dialog {
  margin: auto;
  border: 1px solid var(--color-border-card);
  border-radius: 20px;
  background: var(--color-bg-surface);
  backdrop-filter: blur(20px);
  color: var(--color-text-primary);
  max-width: 650px;
  width: 90%;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#section-ganges .details-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

#section-ganges .details-dialog::backdrop {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(4px);
}

#section-ganges .dialog-content {
  display: flex;
  flex-direction: column;
}

#section-ganges .dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#section-ganges .dialog-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-gold);
}

#section-ganges .close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

#section-ganges .close-btn:hover {
  color: var(--color-text-primary);
}

#section-ganges .dialog-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

#section-ganges .modal-section h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

#section-ganges .modal-section p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

#section-ganges /* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

#section-ganges .data-table th, #section-ganges .data-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

#section-ganges .data-table th {
  color: var(--color-text-secondary);
  font-weight: 500;
}

#section-ganges .data-table td {
  color: var(--color-text-primary);
}

#section-ganges /* App Footer */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(3, 7, 18, 0.5);
  margin-top: auto;
}

#section-ganges /* Audio warning notice floating banner */
.audio-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 158, 11, 0.9);
  color: var(--color-bg-base);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideUp 0.5s ease-out;
  cursor: pointer;
}

#section-ganges .audio-notice.hidden {
  display: none !important;
}

@keyframes slideUp {
  from { bottom: -50px; opacity: 0; }
  to { bottom: 2rem; opacity: 1; }
}

#section-ganges /* Accessibility screen reader helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#section-ganges /* Slider Container & Range Input Styling */
.slider-container {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.2rem;
}

#section-ganges .slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

#section-ganges #distanceDisplay {
  color: var(--color-gold);
  font-size: 1rem;
}

#section-ganges .elevation-info {
  color: var(--color-text-secondary);
  font-family: monospace;
}

#section-ganges .river-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#section-ganges .river-range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

#section-ganges .river-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2.5px solid var(--color-text-primary);
  box-shadow: 0 0 10px var(--color-gold-glow);
  cursor: pointer;
  margin-top: -6px; /* offset for visual alignment */
  transition: var(--transition-smooth);
}

#section-ganges .river-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px var(--color-gold);
}

#section-ganges .slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

#section-ganges /* Droplet tracker node pulse */
.droplet-pulse {
  transform-origin: center;
  animation: dropletGlowPulse 2s infinite ease-out;
}

@keyframes dropletGlowPulse {
  0% {
    r: 6px;
    opacity: 1;
    stroke-width: 1.5px;
  }
  100% {
    r: 20px;
    opacity: 0;
    stroke-width: 0.5px;
  }
}

#section-ganges /* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ganges-main-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
    height: auto;
    overflow: visible;
  }
  
  .panel {
    height: auto;
    overflow: visible;
  }
  
  .map-wrapper {
    min-height: 450px;
    height: 450px;
  }
}

@media (max-width: 640px) {
#section-ganges .app-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
  }

#section-ganges .header-controls {
    width: 100%;
  }

#section-ganges .control-btn {
    width: 100%;
    justify-content: center;
  }

#section-ganges .metrics-grid {
    grid-template-columns: 1fr;
  }

#section-ganges .main-gauge-card {
    grid-row: auto;
  }

#section-ganges .e-coli-card {
    grid-column: auto;
  }

#section-ganges .sub-dashboard-grid {
    grid-template-columns: 1fr;
  }

#section-ganges .active-location-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* ============================================== */
/*  GLOBAL RESPONSIVE MEDIA QUERIES               */
/* ============================================== */

@media (max-width: 1024px) {
  /* Eco Dashboard adjustments */
  #section-eco .eco-dashboard-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  #section-eco header.eco-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  #section-eco .header-controls {
    flex-direction: column;
    width: 100%;
  }
  #section-eco .state-selector-wrapper {
    width: 100%;
  }
  #section-eco .state-search-select {
    width: 100%;
  }
  #section-eco .metrics-numbers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  /* Mobile Header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(10, 16, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
  }
  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
  }
  .mobile-logo i {
    color: var(--color-greenery, #10b981);
  }
  .hamburger-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Sidebar Slide-in Drawer */
  .sidebar-nav {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -280px;
    bottom: auto;
    flex-direction: column;
    padding: 24px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    z-index: 1001;
    transition: left 0.3s ease;
    background: rgba(10, 16, 26, 0.98);
  }
  .sidebar-nav.mobile-open {
    left: 0;
  }
  .sidebar-logo {
    display: flex;
  }
  .sidebar-footer {
    display: block;
  }
  .sidebar-menu {
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 24px;
    width: 100%;
    gap: 8px;
  }
  .sidebar-nav-btn {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
    justify-content: flex-start;
    border-radius: 12px;
  }
  .sidebar-nav-btn span {
    font-size: 0.95rem;
    margin-top: 0;
    text-align: left;
  }
  .sidebar-nav-btn i {
    font-size: 1.1rem;
    width: 24px;
  }
  .main-content-area {
    margin-left: 0;
    padding-bottom: 0;
  }

  /* AQI Dashboard Grid Collapse */
  #section-aqi .dashboard-grid {
    grid-template-columns: 1fr;
  }
  #section-aqi .stations-section-grid {
    grid-template-columns: 1fr;
  }
  #section-aqi .explanatory-grid {
    grid-template-columns: 1fr;
  }
  #section-aqi .current-pollutants-section {
    grid-template-columns: repeat(2, 1fr);
  }
  #section-aqi .health-guidelines-container {
    grid-template-columns: 1fr;
  }
  #section-aqi header.aqi-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  #section-aqi .city-selector-container {
    width: 100%;
    justify-content: space-between;
  }

  /* App Dashboard collapse */
  #section-app .app-hero {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  #section-app .app-highlights {
    text-align: left;
  }
  #section-app .apk-download-card {
    align-items: center;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  #section-eco .metrics-numbers-grid {
    grid-template-columns: 1fr 1fr;
  }
  #section-eco .map-visualization {
    min-height: 450px;
  }
  #section-eco #india-svg-map {
    max-height: 500px;
  }
  #section-eco .metric-toggles {
    flex-wrap: wrap;
  }
  #section-eco .metric-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  #section-aqi .current-pollutants-section {
    grid-template-columns: 1fr;
  }
  #section-aqi .seasonal-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #section-eco .metrics-numbers-grid {
    grid-template-columns: 1fr;
  }
  #section-aqi .meta-stats-grid {
    grid-template-columns: 1fr;
  }
  #section-aqi .station-factors-grid {
    grid-template-columns: 1fr;
  }
  #section-aqi .tabs-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  #section-aqi .tab-group {
    width: 100%;
    justify-content: space-between;
  }
  #section-aqi .tab-btn {
    flex: 1;
    justify-content: center;
  }
  
  /* Additional Ganges adjustments for very small screens */
  #section-ganges .metric-card {
    padding: 1rem;
  }
  #section-ganges .gauges-container {
    grid-template-columns: 1fr;
  }
}
