/* ==========================================================================
   CRITICAL OVERRIDES — Restore normal cursor + scrolling for bulk exporter
   These cancel the global sci-fi cursor from style.css (index.html only).
   ========================================================================== */
html, body {
  cursor: auto !important;
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
  width: 100% !important;
  min-height: 100vh;
}

*, *::before, *::after {
  /* Only apply inside bulk export context — cancelled by parent specificity */
  box-sizing: border-box;
}

/* Restore pointer cursors for interactive elements inside bulk pages */
.bulk-export-container *,
.bulk-grid-layout *,
.bulk-modal-overlay *,
.hub-tab-pane#tab-pane-bulk * {
  cursor: auto;
}

.bulk-export-container button,
.bulk-export-container a,
.bulk-export-container select,
.bulk-export-container input,
.bulk-export-container label,
.bulk-grid-layout button,
.bulk-grid-layout a,
.bulk-grid-layout select,
.bulk-grid-layout input,
.bulk-grid-layout label,
.bulk-modal-overlay button,
.bulk-modal-overlay a,
.bulk-modal-overlay select,
.bulk-modal-overlay input,
.bulk-modal-overlay label,
.hub-tab-pane#tab-pane-bulk button,
.hub-tab-pane#tab-pane-bulk a,
.hub-tab-pane#tab-pane-bulk select,
.hub-tab-pane#tab-pane-bulk input {
  cursor: pointer !important;
}

/**
 * =========================================================================
 * JAXA EARTH MONITOR — BULK EXPORT SUITE STYLES (v4.0)
 * =========================================================================
 */
:root {
  --bulk-bg: #0b111e;
  --bulk-surface: rgba(16, 24, 40, 0.85);
  --bulk-surface-hover: rgba(22, 34, 58, 0.95);
  --bulk-border: rgba(56, 189, 248, 0.2);
  --bulk-border-glow: rgba(0, 242, 254, 0.45);
  --bulk-cyan: #00f2fe;
  --bulk-blue: #38bdf8;
  --bulk-emerald: #10b981;
  --bulk-amber: #f59e0b;
  --bulk-red: #ef4444;
  --bulk-purple: #a855f7;
  --bulk-text: #f8fafc;
  --bulk-text-muted: #94a3b8;
}

/* Container */
.bulk-export-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bulk-text);
}

/* Header Banner */
.bulk-hero-card {
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.92) 0%, rgba(13, 27, 62, 0.85) 100%);
  border: 1px solid var(--bulk-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.bulk-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #4facfe, #a855f7);
}

.bulk-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.bulk-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bulk-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.bulk-hero-h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bulk-hero-sub {
  font-size: 0.88rem;
  color: var(--bulk-text-muted);
  margin: 0.25rem 0 0 0;
}

.bulk-badge-real {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bulk-badge-real::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Academic Caveat Notice */
.bulk-caveat-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.bulk-caveat-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bulk-caveat-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #fde68a;
}

.bulk-caveat-text strong {
  color: #fbbf24;
}

/* ==========================================================================
   INTERACTIVE EGYPT TELEMETRY MAP CARD
   ========================================================================== */
.bulk-egypt-map-card {
  background: linear-gradient(135deg, rgba(6, 12, 24, 0.97) 0%, rgba(10, 18, 38, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.08);
}

.bulk-map-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  min-height: 220px;
}

.bulk-map-canvas-wrap {
  position: relative;
  background: #040810;
  border-right: 1px solid rgba(0, 242, 254, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#egypt-gov-map {
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: contain;
  display: block;
}

.map-scan-overlay {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 242, 254, 0.035) 50%,
    transparent 100%);
  animation: scan-sweep 5s linear infinite;
  pointer-events: none;
}

@keyframes scan-sweep {
  0%   { top: -60%; }
  100% { top: 100%; }
}

.bulk-map-info-panel {
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(5, 10, 20, 0.6);
}

.map-info-header {
  border-bottom: 1px solid rgba(0, 242, 254, 0.12);
  padding-bottom: 0.65rem;
}

.map-active-gov-block {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 10px;
}

.map-active-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  margin-top: 3px;
  transition: all 0.2s;
}

.map-active-dot.active {
  background: #00f2fe;
  box-shadow: 0 0 14px 3px #00f2fe;
  animation: dot-ping 1.2s ease-in-out infinite;
}

@keyframes dot-ping {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px #00f2fe; }
  50%       { transform: scale(1.5); box-shadow: 0 0 20px 4px #00f2fe; }
}

.map-active-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.map-active-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  color: #94a3b8;
  margin-top: 2px;
}

.map-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.map-tel-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
}

.map-tel-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.map-tel-val {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #00f2fe;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .bulk-map-layout { grid-template-columns: 1fr; }
  .bulk-map-canvas-wrap { border-right: none; border-bottom: 1px solid rgba(0, 242, 254, 0.15); }
}

/* Main Two-Column Layout */
.bulk-grid-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .bulk-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Control Cards */
.bulk-card {
  background: var(--bulk-surface);
  border: 1px solid var(--bulk-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
}

.bulk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bulk-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Controls */
.bulk-form-group {
  margin-bottom: 1rem;
}

.bulk-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bulk-input,
.bulk-select {
  width: 100%;
  background: rgba(11, 17, 30, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.bulk-input:focus,
.bulk-select:focus {
  border-color: var(--bulk-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Dates Grid */
.bulk-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Quick Presets Buttons */
.bulk-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.bulk-preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.bulk-preset-pill:hover,
.bulk-preset-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  color: #38bdf8;
}

.bulk-preset-pill.pill-fast {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.bulk-preset-pill.pill-fast:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* Variable Checklist */
.bulk-vars-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.bulk-var-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.bulk-var-row:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
}

.bulk-var-row.selected {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
}

.bulk-var-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bulk-var-cb {
  accent-color: var(--bulk-cyan);
}

.bulk-var-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.bulk-var-sensor {
  font-size: 0.7rem;
  color: #64748b;
  margin-left: 0.35rem;
}

.bulk-var-unit {
  font-size: 0.7rem;
  color: var(--bulk-cyan);
  font-family: monospace;
}

/* Governorate Mode Selector */
.bulk-gov-mode-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.bulk-mode-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.bulk-mode-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--bulk-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Governorates Chips Panel */
.bulk-gov-chips-box {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(11, 17, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.bulk-gov-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.bulk-gov-chip.selected {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  font-weight: 600;
}

.bulk-gov-chip.desert-chip {
  border-color: rgba(245, 158, 11, 0.3);
}

/* Execution Deck */
.bulk-actions-deck {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.bulk-btn-start {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #03112c;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bulk-btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.65);
}

.bulk-btn-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.bulk-sub-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.bulk-btn-sub {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.bulk-btn-sub:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bulk-btn-sub:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bulk-btn-sub.btn-pause {
  color: var(--bulk-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.bulk-btn-sub.btn-stop {
  color: var(--bulk-red);
  border-color: rgba(239, 68, 68, 0.3);
}

.bulk-btn-download {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.bulk-btn-download:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.bulk-btn-download:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Real-Time Telemetry & Progress Dashboard (Right Column) */
.bulk-telemetry-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .bulk-telemetry-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bulk-stat-mini {
  background: rgba(11, 17, 30, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.bulk-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.bulk-stat-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Animated Progress Bar */
.bulk-progress-wrap {
  background: rgba(11, 17, 30, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.bulk-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.bulk-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.bulk-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #38bdf8, #10b981);
  border-radius: 9999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   DOWNLINK MATRIX CANVAS & CYBER CODING HUD
   ========================================================================== */
#downlink-matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.bulk-export-container {
  position: relative;
  z-index: 1;
}

/* MISSION CONTROL SATELLITE DOWNLINK HUD */
.bulk-downlink-hud {
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.95) 0%, rgba(13, 24, 48, 0.9) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.bulk-downlink-hud::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.08), transparent);
  animation: hud-sweep 6s linear infinite;
  pointer-events: none;
}

@keyframes hud-sweep {
  0%   { left: -100%; }
  50%  { left: 200%; }
  100% { left: 200%; }
}

.hud-dish-col {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-dish-radar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(6, 12, 24, 0.9) 70%);
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.hud-dish-radar .radar-satellite-icon {
  font-size: 1.35rem;
  animation: sat-bob 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #00f2fe);
}

.hud-dish-radar::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.35);
  animation: radar-spin 12s linear infinite;
}

.hud-dish-radar::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.15);
  animation: radar-pulse 2.5s ease-out infinite;
}

@keyframes sat-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(4deg); }
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes radar-pulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hud-sat-info h4 {
  margin: 0;
  font-family: 'Orbitron', 'JetBrains Mono', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-sat-info p {
  margin: 3px 0 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.hud-telemetry-metrics {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hud-metric-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  display: flex;
  flex-direction: column;
}

.hud-metric-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.hud-metric-val {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #00f2fe;
}

.hud-rx-beacon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.rx-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  transition: all 0.15s;
}

.rx-led.pulse {
  background: #00f2fe;
  box-shadow: 0 0 18px 4px #00f2fe;
  transform: scale(1.4);
}

.rx-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #10b981;
}

/* Terminal Console */
.bulk-terminal-wrap {
  background: #040812;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.1);
  position: relative;
}

.bulk-terminal-top {
  background: linear-gradient(90deg, #091022 0%, #0f1936 100%);
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bulk-terminal-dots {
  display: flex;
  gap: 6px;
}

.bulk-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.bulk-dot.red { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.bulk-dot.yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.bulk-dot.green { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }

.bulk-terminal-title {
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bulk-terminal-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-terminal-tool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-terminal-tool:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: #00f2fe;
  color: #fff;
}

.btn-terminal-tool.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.bulk-terminal-body {
  height: 290px;
  overflow-y: auto;
  padding: 0.9rem 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  line-height: 1.7;
  color: #e2e8f0;
  position: relative;
  background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
}

/* Hacker / IDE Syntax-highlighted Log Badges — Structured Column Grid */
.bulk-log-line {
  margin-bottom: 0.25rem;
  display: grid;
  grid-template-columns: 78px 68px 75px 120px 100px 18px 1fr 65px;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

.bulk-log-line.system {
  display: block;
  padding: 4px 0;
  white-space: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Pre-archive date skips — muted, NOT an error */
.bulk-log-line.skip {
  display: block;
  padding: 2px 0;
  white-space: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: #475569;
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.65;
}

.bulk-badge-time {
  color: #64748b;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
}

.bulk-badge-ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.68rem;
  text-align: center;
}

.bulk-badge-dataset {
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.68rem;
  text-align: center;
}

.bulk-badge-gov {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.68rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-badge-date {
  color: #94a3b8;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
}

.bulk-badge-arrow {
  color: #64748b;
  text-align: center;
  font-size: 0.7rem;
}

.bulk-badge-val {
  color: #f8fafc;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.bulk-badge-val.highlight {
  color: #fde047;
}

.bulk-badge-latency {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
}

.bulk-terminal-prompt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #00f2fe;
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #00f2fe;
  animation: cursor-blink 1s steps(2, start) infinite;
  vertical-align: middle;
  box-shadow: 0 0 8px #00f2fe;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Live Data Table Preview */
.bulk-preview-wrap {
  margin-top: 1.25rem;
  background: rgba(7, 12, 24, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 1.15rem;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bulk-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.bulk-preview-table th {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.bulk-preview-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  vertical-align: middle;
}

/* Packet Arrival Laser Glow Animation */
.bulk-preview-table tr.packet-new-row {
  animation: packet-arrival-glow 2s ease-out;
}

@keyframes packet-arrival-glow {
  0% {
    background: rgba(0, 242, 254, 0.35);
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.6);
  }
  30% {
    background: rgba(16, 185, 129, 0.2);
  }
  100% {
    background: transparent;
  }
}

.bulk-preview-table tr:hover td {
  background: rgba(0, 242, 254, 0.04);
}

/* Mini Value Gauge Bar */
.bulk-mini-gauge {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3px;
}

.bulk-mini-gauge-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.bulk-mini-gauge-fill.thermal {
  background: linear-gradient(90deg, #38bdf8, #f59e0b, #ef4444);
}
.bulk-mini-gauge-fill.vegetation {
  background: linear-gradient(90deg, #d97706, #84cc16, #10b981);
}
.bulk-mini-gauge-fill.rain {
  background: linear-gradient(90deg, #38bdf8, #2563eb, #7c3aed);
}
.bulk-mini-gauge-fill.soil {
  background: linear-gradient(90deg, #b45309, #0284c7, #0369a1);
}

/* Modal Overlay for index.html */
.bulk-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 99999;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.bulk-modal-overlay.active {
  display: block;
}

.bulk-modal-dialog {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bulk-bg);
  border: 1px solid var(--bulk-border-glow);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.2);
  padding: 1.5rem;
  position: relative;
}

/* Old in-dialog close button (kept for backwards compat, hidden) */
.bulk-modal-close {
  display: none;
}

/* New: Fixed top-right close button — always visible, never scrolls away */
.bulk-modal-close-fixed {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  width: 42px;
  height: 42px;
  background: rgba(10, 15, 30, 0.92);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: none;          /* hidden by default, shown only when modal is open */
  align-items: center;
  justify-content: center;
  z-index: 10100;         /* above the modal overlay (z-index: 10000) */
  transition: all 0.18s;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.15);
}

/* Show the button only when the modal is active */
#bulk-export-modal.active .bulk-modal-close-fixed {
  display: flex;
}

.bulk-modal-close-fixed:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   UNIFIED HEADER STYLES (Matching research-hub & portal design)
   ========================================================================== */
.hub-header {
  height: 64px;
  background: rgba(7, 12, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hub-logo-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.hub-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hub-title-group h1 {
  font-family: 'Orbitron', 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-badge-lab {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(168, 85, 247, 0.3));
  border: 1px solid #00f2fe;
  color: #00f2fe;
  -webkit-text-fill-color: #00f2fe;
  text-transform: uppercase;
}

.hub-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.hub-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.hub-nav-link:hover {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  color: #00f2fe;
}

.portal-return-btn {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
}

/* ==========================================================================
   UNIFIED FOOTER STYLES (Matching research-hub & portal design)
   ========================================================================== */
footer.footer-slim {
  min-height: 44px;
  background: rgba(2, 4, 10, 0.96);
  border-top: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  backdrop-filter: blur(14px);
  gap: 16px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-copy {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.footer-copy strong {
  color: #f8fafc;
  font-weight: 700;
}

.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.telemetry-label {
  color: #64748b;
  font-weight: 600;
}

.telemetry-val {
  color: #00f2fe;
  font-weight: 700;
}

.telemetry-val.highlight {
  color: #fff;
}

.footer-windows-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(0, 120, 215, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 120, 215, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-windows-btn:hover {
  background: rgba(0, 120, 215, 0.35);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.windows-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fb7185;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-support-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: currentColor;
  animation: heart-beat 1.6s ease-in-out infinite;
}

.footer-support-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #fb7185;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.45);
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(10, 102, 194, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60a5fa;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(10, 102, 194, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-linkedin svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-linkedin:hover {
  background: rgba(10, 102, 194, 0.35);
  border-color: #60a5fa;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.45);
}

/* Desktop & Support Modals */
.windows-modal-overlay,
.support-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
}

.windows-modal-card,
.support-modal-card {
  background: linear-gradient(135deg, rgba(13, 22, 45, 0.98), rgba(8, 14, 26, 0.98));
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modal-pop 0.25s ease-out;
}

.windows-modal-close,
.support-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.4rem;
  transition: color 0.2s;
}

.windows-modal-close:hover,
.support-modal-close:hover {
  color: #fff;
}

.windows-modal-header,
.support-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.windows-modal-title,
.support-modal-title {
  font-family: 'Orbitron', 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.windows-modal-subtitle,
.support-modal-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 6px 0 18px 0;
}

.windows-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.windows-feat-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-win-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0078d4;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-win-primary:hover {
  background: #1084d8;
  box-shadow: 0 0 15px rgba(0, 120, 212, 0.5);
}

.support-modal-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.support-qr-img {
  width: 220px;
  border-radius: 12px;
  border: 2px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.support-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.25); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.25); }
  70%       { transform: scale(1); }
}

@keyframes modal-pop {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .hub-header {
    padding: 0 12px;
    height: 56px;
  }
  .hub-brand {
    gap: 10px;
  }
  .hub-subtitle {
    display: none;
  }
  footer.footer-slim {
    flex-direction: column;
    height: auto;
    padding: 12px;
    gap: 8px;
    text-align: center;
  }
}

/* ==========================================================================
   Smart Spatial Scope UI — AOI-aware Study Area Selector
   ========================================================================== */

/* 4-column scope mode tab row */
.bulk-scope-mode-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.bulk-scope-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.5rem 0.3rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
}

.bulk-scope-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.35);
  color: #94a3b8;
}

.bulk-scope-btn.active {
  background: rgba(0, 242, 254, 0.16);
  border-color: var(--bulk-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Scope sub-panels */
.bulk-scope-panel {
  margin-top: 0.1rem;
  animation: bulkFadeIn 0.18s ease;
}

@keyframes bulkFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* Active AOI Banner */
.bulk-aoi-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.1), rgba(0, 242, 254, 0.04));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.bulk-aoi-banner-icon {
  color: var(--bulk-cyan);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.bulk-aoi-banner-body {
  flex: 1;
  min-width: 0;
}

.bulk-aoi-banner-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-aoi-banner-meta {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 1px;
}

.bulk-aoi-banner-clear {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #64748b;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.bulk-aoi-banner-clear:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

/* Map viewport info box */
.bulk-viewport-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
}

.bulk-viewport-info svg {
  color: var(--bulk-cyan);
  margin-top: 1px;
}

/* File upload drop zone */
.bulk-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed rgba(0, 242, 254, 0.3);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(11, 17, 30, 0.5);
  transition: all 0.18s;
  width: 100%;
}

.bulk-upload-zone:hover {
  border-color: var(--bulk-cyan);
  background: rgba(0, 242, 254, 0.06);
  color: #e2e8f0;
}
