:root {
  --bg-primary: #060913;
  --bg-secondary: #0a1124;
  --glass-bg: rgba(10, 17, 36, 0.88);
  --glass-border: rgba(0, 240, 255, 0.18);
  --accent: #00f0ff;
  --accent-glow: rgba(0, 240, 255, 0.4);
  --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #7e8da6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --card-bg: rgba(10, 18, 38, 0.65);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.3px;
}

#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Hide Leaflet Watermark and Attribution Banner */
.leaflet-control-attribution,
.leaflet-bottom.leaflet-right {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Tactical Command Header */
.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Radar Sweep Mini Icon */
.logo-radar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.5);
  position: relative;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.radar-sweep-mini {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 240, 255, 0.7) 360deg);
  animation: radarSpin 2.4s linear infinite;
}

.radar-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #00f0ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px #00f0ff;
}

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

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text h1 .brand-sub {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.brand-text p {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  width: 440px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon-glyph {
  position: absolute;
  left: 0.7rem;
  font-size: 0.9rem;
  color: var(--accent);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.8rem 0.5rem 2rem;
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.07);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Header Telemetry Bar */
.header-telemetry {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.security-classification-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.35);
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.3);
  display: flex;
  align-items: center;
}

.telemetry-chip {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.chip-val {
  color: var(--accent);
  font-weight: 600;
}

.status-badge.live {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
button {
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.45rem 0.85rem;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: #030712;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  letter-spacing: 0.8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover:not(:disabled) {
  background: #38f9d7;
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.65rem 1rem;
  width: 100%;
  letter-spacing: 0.6px;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.btn-outline:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
  background: transparent;
}

/* Workspace Layout - Full Bleed C2 Tactical Interface */
.workspace {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.map-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
}

/* Tactical Viewport HUD Reticles */
.map-hud-brackets {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 700;
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(0, 240, 255, 0.4);
  border-style: solid;
}

.hud-corner.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-corner.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hud-corner.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hud-grid-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 50%;
}

.map-overlay-controls {
  position: absolute;
  top: 55px;
  left: 55px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.date-selector, .basemap-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
}

.date-selector input, .basemap-selector select {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.basemap-selector select {
  cursor: pointer;
}

.basemap-selector select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.mouse-coords-bar {
  position: absolute;
  bottom: 15px;
  left: 60px;
  z-index: 800;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--glass-border);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.5px;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Indian Coastal Mariculture Hotspots Strip (ClimaCrew Blue Economy) */
.mariculture-hotspots-strip {
  position: absolute;
  top: 15px;
  left: 55px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.2rem;
}

.pulse-indicator-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseGlow 1.8s infinite;
}

.target-hub-btn {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.target-hub-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Floating Raster Imagery Toolbar */
.map-imagery-toolbar {
  position: absolute;
  top: 102px;
  left: 55px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 0.3s ease-out;
}

.imagery-mode-group, .imagery-opacity-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toolbar-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.8px;
}

.layer-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.layer-dot.rgb { background: #00f0ff; box-shadow: 0 0 6px #00f0ff; }
.layer-dot.ndvi { background: #10b981; box-shadow: 0 0 6px #10b981; }
.layer-dot.fai { background: #39ff14; box-shadow: 0 0 6px #39ff14; }
.layer-dot.vector { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.layer-toggle-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(0, 240, 255, 0.3);
}

.layer-toggle-btn.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.imagery-opacity-group input[type="range"] {
  width: 75px;
  accent-color: var(--accent);
  cursor: pointer;
}

#opacity-val {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent);
  min-width: 30px;
}

/* Futuristic Progressive Pipeline Stepper HUD */
.pipeline-stepper-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(10px);
  z-index: 950;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s ease-out;
}

.stepper-card {
  position: relative;
  background: #080d1e;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 240, 255, 0.03);
  border-radius: 4px;
  padding: 2rem;
  width: 90%;
  max-width: 520px;
  overflow: hidden;
}

.stepper-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.08) 85%, rgba(0, 240, 255, 0.3) 100%);
  animation: scanlineSweep 2.6s linear infinite;
  pointer-events: none;
}

@keyframes scanlineSweep {
  0% { top: -100%; }
  100% { top: 100%; }
}

.stepper-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.stepper-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.stepper-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.1rem;
}

.stepper-sys-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.stepper-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.radar-pulse {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  animation: radarRing 1.5s ease-out infinite;
}

@keyframes radarRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

.stepper-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stepper-steps .step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.stepper-steps .step-num {
  font-weight: 700;
  color: var(--text-secondary);
}

.stepper-steps .step.active {
  color: var(--accent);
  font-weight: 600;
}

.stepper-steps .step.active .step-num {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.stepper-steps .step.completed {
  color: var(--success);
}

.stepper-steps .step.completed .step-num {
  color: var(--success);
}

/* Satellite Imagery Viewer Card */
.imagery-card {
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.02);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-title-row h3 {
  margin-bottom: 0 !important;
}

.imagery-badges {
  display: flex;
  gap: 0.35rem;
}

.imagery-chip {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.imagery-preview-frame {
  position: relative;
  width: 100%;
  height: 180px;
  background: #02050b;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagery-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.imagery-preview-frame:hover img {
  transform: scale(1.02);
}

.imagery-preview-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--accent);
  border: 1px solid var(--glass-border);
  letter-spacing: 0.4px;
}

.imagery-card-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.btn-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

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

.btn-chip.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.imagery-meta-hint {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-left: auto;
}

/* Dashboard Panel - Floating Glass C2 Tactical Drawer */
.dashboard-panel {
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  width: 440px;
  max-width: calc(100vw - 30px);
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.08);
  z-index: 850;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.dashboard-panel.collapsed {
  transform: translateX(calc(100% + 25px));
}

.hud-drawer-toggle {
  position: absolute;
  left: -38px;
  top: 20px;
  width: 38px;
  height: 110px;
  background: rgba(6, 11, 24, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  z-index: 860;
  padding: 0;
}

.hud-drawer-toggle:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #fff;
  border-color: var(--accent);
  box-shadow: -8px 0 25px rgba(0, 240, 255, 0.35);
}

.hud-drawer-toggle .toggle-icon {
  font-size: 0.72rem;
  transition: transform 0.3s ease;
}

.dashboard-panel.collapsed .hud-drawer-toggle .toggle-icon {
  transform: rotate(180deg);
}

.hud-drawer-toggle .toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.panel-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 14, 30, 0.95);
  border-radius: 6px 6px 0 0;
}

.panel-header-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.panel-header-title h2 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  color: #fff;
  margin: 0;
}

.panel-sub-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
  letter-spacing: 0.8px;
}

.hud-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.hud-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.warning-badge {
  background: rgba(245, 158, 11, 0.15) !important;
  color: var(--warning) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.badge-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.panel-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: rgba(8, 14, 30, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.32);
  box-shadow: 0 4px 24px rgba(0, 240, 255, 0.08);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  padding-bottom: 0.4rem;
}

/* Mariculture & Blue Carbon Intelligence Card (ClimaCrew) */
.mariculture-card {
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 240, 255, 0.025);
}

.mariculture-hud {
  display: flex;
  flex-direction: column;
}

.hud-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.hud-tier-label {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent);
}

.hud-score-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.species-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #f1f5f9;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  line-height: 1.3;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--success) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  font-size: 0.76rem;
}

.info-grid div {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

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

.info-grid span {
  color: #fff;
  font-weight: 600;
}

.placeholder-text {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Stat progress bars */
.stat-item {
  margin-bottom: 0.7rem;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.stat-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-fill {
  height: 100%;
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.interpretation-item {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 240, 255, 0.03);
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
}

.confidence {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 0.35rem;
  letter-spacing: 0.3px;
}

/* Regional Geological Literature Items */
.literature-item {
  font-size: 0.8rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 3px;
  transition: all 0.2s ease;
}

.literature-item:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.35);
}

.literature-title {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.literature-title:hover {
  text-decoration: underline;
}

.literature-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.oa-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Header Report Action Button */
.badge-btn {
  background: var(--accent-gradient);
  border: none;
  color: #000000;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.badge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}

/* Intelligence Report Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal-card {
  background: #0b1323;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.report-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.report-timestamp {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Report Internal Sections */
.report-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.2rem;
}

.report-section h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.4rem;
}

.report-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.report-grid-2 div {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}

.report-grid-2 label {
  color: var(--text-secondary);
}

.report-distribution-bar {
  display: flex;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  margin: 0.75rem 0 0.5rem 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.report-distribution-seg {
  height: 100%;
}

.report-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.report-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.report-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.report-callout {
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 240, 255, 0.04);
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.report-footer-notice {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   Tactical AOI Hovering Card (Palantir Defense C2 Reticle Callout)
   ========================================================================== */
.tactical-aoi-popup {
  margin-bottom: 12px;
}

.tactical-aoi-popup .leaflet-popup-content-wrapper {
  background: rgba(6, 12, 26, 0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-radius: 4px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 240, 255, 0.2) !important;
  padding: 0 !important;
  color: var(--text-primary) !important;
  overflow: hidden !important;
}

.tactical-aoi-popup .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  width: 320px !important;
}

.tactical-aoi-popup .leaflet-popup-tip-container {
  overflow: visible !important;
}

.tactical-aoi-popup .leaflet-popup-tip {
  background: rgba(6, 12, 26, 0.95) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2) !important;
}

.tactical-aoi-popup .leaflet-popup-close-button {
  color: var(--accent) !important;
  font-family: var(--font-mono) !important;
  top: 8px !important;
  right: 10px !important;
  font-size: 16px !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.tactical-aoi-popup .leaflet-popup-close-button:hover {
  color: #fff !important;
}

.tactical-hud-card {
  display: flex;
  flex-direction: column;
}

.hud-card-header {
  padding: 0.75rem 0.9rem;
  background: rgba(10, 20, 42, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-target-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-status-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hud-card-body {
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hud-metric-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hud-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.hud-metric-class {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-metric-pct {
  color: var(--accent);
  font-weight: 700;
}

.hud-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.hud-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.hud-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.hud-tele-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hud-tele-label {
  color: var(--text-secondary);
  font-size: 0.6rem;
  letter-spacing: 0.4px;
}

.hud-tele-val {
  color: #fff;
  font-weight: 600;
}

.text-accent { color: var(--accent) !important; }
.text-emerald { color: #10b981 !important; }
.text-cyan { color: #00f0ff !important; }

.hud-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.hud-card-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.hud-card-btn.primary {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.hud-card-btn.primary:hover {
  background: var(--accent);
  color: #030712;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.hud-card-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
}

.hud-card-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Dedicated Print Layout for PDF Report Generation */
@media print {
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    overflow: visible !important;
    height: auto !important;
  }

  body.modal-open #app-container {
    display: none !important;
  }

  body.modal-open #report-modal {
    display: block !important;
    position: static !important;
    background: #ffffff !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.modal-open .modal-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    color: #0f172a !important;
  }

  body.modal-open .modal-actions {
    display: none !important;
  }

  body.modal-open .modal-header {
    border-bottom: 2px solid #0f172a !important;
    color: #0f172a !important;
    padding: 0 0 1rem 0 !important;
  }

  body.modal-open .report-title-group h2 {
    color: #0f172a !important;
  }

  body.modal-open .report-section {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    break-inside: avoid;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
  }

  body.modal-open .report-section h3 {
    color: #0369a1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }

  body.modal-open .report-grid-2 label,
  body.modal-open .report-legend,
  body.modal-open .report-timestamp,
  body.modal-open .report-footer-notice {
    color: #475569 !important;
  }

  body.modal-open .report-callout {
    background: #f0f9ff !important;
    border-left: 3px solid #0284c7 !important;
    color: #0f172a !important;
  }

  .glass-header .search-bar,
  .map-overlay-controls,
  .mouse-coords-bar,
  .leaflet-control-zoom,
  .leaflet-draw,
  .actions-group,
  #basemap-select {
    display: none !important;
  }

  #app-container {
    height: auto !important;
  }

  .glass-header {
    background: #f8fafc !important;
    border-bottom: 2px solid #0f172a !important;
    color: #0f172a !important;
  }

  .workspace {
    display: block !important;
    overflow: visible !important;
  }

  .map-section {
    height: 380px !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 1.5rem !important;
  }

  .dashboard-panel {
    background: #ffffff !important;
    border: none !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    break-inside: avoid;
    margin-bottom: 1rem !important;
  }

  .card h3 {
    color: #0f172a !important;
  }

  .info-grid label,
  .confidence {
    color: #475569 !important;
  }

  .interpretation-item {
    background: #ffffff !important;
    border-left: 3px solid #0284c7 !important;
    color: #0f172a !important;
  }

  .literature-item {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    break-inside: avoid;
  }

  .literature-title {
    color: #0369a1 !important;
  }

  .literature-meta {
    color: #475569 !important;
  }

  .oa-badge {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
  }
}

