/* ==========================================================================
   FLOW ROOTS - Flow Tracker 2D Tactical Map Theme
   ========================================================================== */

:root {
  --font-hud: 'Share Tech Mono', monospace;
  
  --map-bg: #0a1628;
  --hud-cyan: #09a4c7;
  --hud-text: #a8e1fe;
  --green-pin: #00ff50;
  --red-pin: #ff2a5f;
  --gold-pin: #ffb700;
  --purple-pin: #a855f7;
  --pink-pin: #ff00cc;
  
  --border-hud: rgba(9, 164, 199, 0.4);
  --glass-hud: rgba(10, 22, 40, 0.92);
}

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

body.hud-body {
  font-family: var(--font-hud);
  background-color: var(--map-bg);
  color: var(--hud-text);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER BANNER & BRANDING
   ========================================================================== */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: #060e1a;
  border-bottom: 2px solid var(--border-hud);
  z-index: 10;
}

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

.flow-badge {
  font-size: 1.1rem;
  background: var(--hud-cyan);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  line-height: 1;
}

.hud-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--hud-cyan);
  font-size: 0.85rem;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-time {
  color: var(--hud-text);
  font-size: 0.85rem;
}

.hud-sfx-btn {
  background: rgba(9, 164, 199, 0.1);
  border: 1px solid var(--border-hud);
  color: var(--hud-cyan);
  font-family: var(--font-hud);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-sfx-btn:hover {
  background: var(--hud-cyan);
  color: #000;
  box-shadow: 0 0 10px var(--hud-cyan);
}

.hud-sfx-btn.muted {
  color: #888;
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.hud-weather {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-hud);
  color: var(--hud-text);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.hud-weather .weather-alert {
  color: var(--gold-pin);
  font-weight: 700;
}

.hud-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: #060e1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%2309a4c7' d='M0 0l5 6 5-6z'/></svg>") no-repeat right 8px center !important;
  background-size: 8px 5px !important;
  color: var(--hud-cyan) !important;
  border: 1px solid var(--hud-cyan) !important;
  border-radius: 4px !important;
  padding: 4px 22px 4px 8px !important;
  font-family: var(--font-hud) !important;
  font-size: 0.72rem !important;
  cursor: pointer;
  outline: none;
}

.hud-select:hover,
.hud-select:focus {
  box-shadow: 0 0 10px var(--hud-cyan);
  background: rgba(9, 164, 199, 0.15);
}

.hud-select option {
  background: #060e1a;
  color: var(--hud-text);
  padding: 0.4rem;
}

/* ==========================================================================
   LAYOUT GRID & LEFT NAVIGATION DOCK
   ========================================================================== */
.tracker-viewport {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.left-dock {
  width: 54px;
  background: #060e1a;
  position: absolute !important;
  top: 0;
  bottom: 0;
  left: 0;
  border-right: 1px solid var(--border-hud);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  gap: 0.75rem;
  pointer-events: auto !important;
  z-index: 10000 !important;
}

.dock-btn {
  width: 38px;
  height: 38px;
  background: rgba(9, 164, 199, 0.1);
  border: 1px solid var(--border-hud);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: auto !important;
  z-index: 10000 !important;
  font-size: 1rem;
}

.dock-btn.active, 
.dock-btn:hover {
  background: var(--hud-cyan);
  box-shadow: 0 0 12px var(--hud-cyan);
  color: #000;
}

/* Red Button: Open Ciphers & Jams */
.dock-btn.red-btn:hover, 
.dock-btn.red-btn.active {
  background: var(--red-pin) !important;
  border-color: var(--red-pin) !important;
  box-shadow: 0 0 12px var(--red-pin) !important;
  color: #fff !important;
}

/* Green Button: Practice Sessions */
.dock-btn.green-btn:hover, 
.dock-btn.green-btn.active {
  background: var(--green-pin) !important;
  border-color: var(--green-pin) !important;
  box-shadow: 0 0 12px var(--green-pin) !important;
  color: #000 !important;
}

/* Gold Button: Workshops & Classes */
.dock-btn.gold-btn:hover, 
.dock-btn.gold-btn.active {
  background: var(--gold-pin) !important;
  border-color: var(--gold-pin) !important;
  box-shadow: 0 0 12px var(--gold-pin) !important;
  color: #000 !important;
}

/* Purple Button: Battle Events */
.dock-btn.purple-btn:hover, 
.dock-btn.purple-btn.active {
  background: var(--purple-pin) !important;
  border-color: var(--purple-pin) !important;
  box-shadow: 0 0 12px var(--purple-pin) !important;
  color: #fff !important;
}

/* Pink Button: Performances & Showcases */
.dock-btn.pink-btn:hover, 
.dock-btn.pink-btn.active {
  background: var(--pink-pin) !important;
  border-color: var(--pink-pin) !important;
  box-shadow: 0 0 12px var(--pink-pin) !important;
  color: #fff !important;
}

/* Cyan Utility Buttons */
.dock-btn.cyan-btn:hover,
.dock-btn.cyan-btn.active {
  background: rgba(9, 164, 199, 0.25);
  border-color: var(--hud-cyan);
  box-shadow: 0 0 12px var(--hud-cyan);
}

/* Hide dock when submission modal overlay is open */
body:has(#submitModal:not(.hidden)) .left-dock {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   2D MAP CANVAS & OVERLAYS
   ========================================================================== */
.map-view {
  flex: 1;
  position: relative;
  background: var(--map-bg);
}

#map-vector {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

/* Tactical Dark Tile Filter */
.leaflet-tile-pane img {
  filter: brightness(0.65) invert(0.75) contrast(5.0) hue-rotate(160deg) saturate(0.4) !important;
}

/* HUD Overlay Measure Rulers */
.map-hud-overlay-horizontal-measure {
  position: absolute;
  top: 15px;
  left: 70px;
  right: 20px;
  height: 12px;
  background-image: repeating-linear-gradient(90deg, var(--hud-cyan) 0 1px, transparent 1px 12px);
  z-index: 5 !important;
  pointer-events: none !important;
  opacity: 0.6;
}

.map-hud-overlay-vertical-measure {
  position: absolute;
  top: 40px;
  left: 15px;
  bottom: 20px;
  width: 12px;
  background-image: repeating-linear-gradient(0deg, var(--hud-cyan) 0 1px, transparent 1px 12px);
  z-index: 5 !important;
  pointer-events: none !important;
  opacity: 0.6;
}

/* Radar Sweep Widget */
.radar-widget {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--hud-cyan);
  background: rgba(6, 14, 26, 0.85);
  box-shadow: 0 0 15px var(--border-hud);
  z-index: 1000;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.radar-widget:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--hud-cyan);
}

#radar-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Leaflet Zoom Control Override */
.leaflet-top.leaflet-right .leaflet-control-zoom {
  border: 1px solid var(--hud-cyan) !important;
  background: rgba(6, 14, 26, 0.85) !important;
  backdrop-filter: blur(6px);
  margin-top: 50px !important;
  margin-right: 12px !important;
}

.leaflet-control-zoom a {
  background: transparent !important;
  color: var(--hud-cyan) !important;
  border-bottom: 1px solid rgba(9, 164, 199, 0.3) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(9, 164, 199, 0.2) !important;
  color: #fff !important;
}

/* Leaflet Marker Cluster Badges */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(9, 164, 199, 0.25) !important;
  border: 2px solid var(--hud-cyan) !important;
  box-shadow: 0 0 12px var(--hud-cyan);
  border-radius: 50% !important;
}

.marker-cluster div {
  background: rgba(6, 14, 26, 0.95) !important;
  color: var(--hud-cyan) !important;
  font-family: var(--font-hud) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}

/* ==========================================================================
   NODE MAP PINS & PULSE ANIMATIONS
   ========================================================================== */
.custom-pin {
  background: transparent;
  border: none;
}

.pin-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(6, 14, 26, 0.92);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.pin-inner:hover {
  transform: scale(1.18);
  z-index: 999;
}

/* Green Pins: Practice Sessions */
.pin-session,
.pin-confirmed {
  border: 2px solid var(--green-pin) !important;
  box-shadow: 0 0 12px var(--green-pin), inset 0 0 8px rgba(0, 255, 80, 0.4) !important;
  animation: pulse-green 2.5s infinite alternate !important;
}

/* Red Pins: Open Ciphers & Jams */
.pin-jam,
.pin-cipher,
.pin-rumored {
  border: 2px solid var(--red-pin) !important;
  box-shadow: 0 0 12px var(--red-pin), inset 0 0 8px rgba(255, 42, 95, 0.4) !important;
  animation: pulse-red 2.5s infinite alternate !important;
}

/* Gold Pins: Workshops & Classes */
.pin-workshop,
.pin-class {
  border: 2px solid var(--gold-pin) !important;
  box-shadow: 0 0 12px var(--gold-pin), inset 0 0 8px rgba(255, 183, 0, 0.4) !important;
  animation: pulse-gold 2.5s infinite alternate !important;
}

/* Purple Pins: Battle Events */
.pin-battle {
  border: 2px solid var(--purple-pin) !important;
  box-shadow: 0 0 12px var(--purple-pin), inset 0 0 8px rgba(168, 85, 247, 0.4) !important;
  animation: pulse-purple 2.5s infinite alternate !important;
}

/* Pink / Magenta Pins: Performances & Showcases */
.pin-performance {
  border: 2px solid var(--pink-pin) !important;
  box-shadow: 0 0 12px var(--pink-pin), inset 0 0 8px rgba(255, 0, 204, 0.4) !important;
  animation: pulse-pink 2.5s infinite alternate !important;
}

/* Pulse Keyframes */
@keyframes pulse-green {
  0% { box-shadow: 0 0 6px var(--green-pin), inset 0 0 4px rgba(0, 255, 80, 0.3); }
  100% { box-shadow: 0 0 16px var(--green-pin), 0 0 24px var(--green-pin), inset 0 0 10px rgba(0, 255, 80, 0.6); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 6px var(--red-pin), inset 0 0 4px rgba(255, 42, 95, 0.3); }
  100% { box-shadow: 0 0 16px var(--red-pin), 0 0 24px var(--red-pin), inset 0 0 10px rgba(255, 42, 95, 0.6); }
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 6px var(--gold-pin), inset 0 0 4px rgba(255, 183, 0, 0.3); }
  100% { box-shadow: 0 0 16px var(--gold-pin), 0 0 24px var(--gold-pin), inset 0 0 10px rgba(255, 183, 0, 0.6); }
}

@keyframes pulse-purple {
  0% { box-shadow: 0 0 6px var(--purple-pin), inset 0 0 4px rgba(168, 85, 247, 0.3); }
  100% { box-shadow: 0 0 16px var(--purple-pin), 0 0 24px var(--purple-pin), inset 0 0 10px rgba(168, 85, 247, 0.6); }
}

@keyframes pulse-pink {
  0% { box-shadow: 0 0 6px var(--pink-pin), inset 0 0 4px rgba(255, 0, 204, 0.3); }
  100% { box-shadow: 0 0 16px var(--pink-pin), 0 0 24px var(--pink-pin), inset 0 0 10px rgba(255, 0, 204, 0.6); }
}

/* User Geolocation Beacon Styles */
.user-beacon-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hud-cyan);
  border: 2px solid #ffffff;
  box-shadow: 0 0 16px var(--hud-cyan);
  position: relative;
  cursor: pointer;
}

.user-beacon-wave {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--hud-cyan);
  border-radius: 50%;
  animation: user-wave-pulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

@keyframes user-wave-pulse {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   FLOATING DETAIL CARD (#infowindow)
   ========================================================================== */
.hud-card {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 320px;
  background: var(--glass-hud);
  border: 1px solid var(--hud-cyan);
  border-radius: 6px;
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(9, 164, 199, 0.25);
  z-index: 1010;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: left !important;
}

.hud-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-hud);
  padding-bottom: 0.4rem;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-tag {
  background: var(--hud-cyan);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.edit-btn {
  background: transparent !important;
  border: none !important;
  color: var(--hud-cyan) !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  padding: 4px 6px !important;
  position: relative !important;
  z-index: 1050 !important;
  pointer-events: auto !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.edit-btn:hover {
  color: #fff !important;
  transform: scale(1.2);
}

.svg-edit-icon {
  display: block;
}

.close-btn {
  background: transparent !important;
  border: none !important;
  color: var(--hud-cyan) !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  font-weight: bold;
  line-height: 1 !important;
  padding: 4px 8px !important;
  position: relative !important;
  z-index: 1050 !important;
  pointer-events: auto !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
  color: #fff !important;
  transform: scale(1.2);
}

.card-body,
.card-body *,
.meta-line,
#cardLeadRow,
#cardTitle,
#cardVenue,
#cardTime,
#cardLead,
#cardDesc {
  text-align: left !important;
}

.card-body h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.meta-line {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  white-space: normal !important;
}

.meta-line-hidden {
  display: none;
}

#cardLeadRow {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  white-space: normal !important;
}

#cardLeadRow strong,
#cardLeadRow span,
#cardLead {
  display: inline !important;
  text-align: left !important;
  white-space: normal !important;
}

.card-desc {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.6rem;
  line-height: 1.35;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.card-tag-chip {
  background: rgba(9, 164, 199, 0.15);
  border: 1px solid var(--hud-cyan);
  color: var(--hud-cyan);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.hud-pullup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 6px 10px;
  background: rgba(0, 255, 127, 0.08);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 4px;
}

.hud-pullup-label {
  font-size: 0.75rem;
  color: #00ff7f;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.hud-pullup-val {
  font-size: 0.85rem;
  color: #fff;
  font-weight: bold;
}

.card-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-host-post-hidden {
  display: none;
  text-align: center;
  text-decoration: none;
}

.hud-btn {
  width: 100%;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--hud-cyan);
  color: var(--hud-cyan);
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.hud-btn:hover {
  background: var(--hud-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--hud-cyan);
}

.hud-btn-accent {
  display: block;
  text-align: center;
  text-decoration: none;
  border-color: var(--hud-cyan);
  color: var(--hud-cyan);
}

.hud-btn-accent:hover {
  background: var(--hud-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--hud-cyan);
}

.hud-btn-alert {
  border-color: #ff0055;
  color: #ff0055;
}

.hud-btn-alert:hover {
  background: #ff0055;
  color: #000;
  box-shadow: 0 0 15px #ff0055;
}

/* ==========================================================================
   REPORT MODAL OVERLAY & FORM STYLES (#submitModal)
   ========================================================================== */
.hud-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 24, 0.82) !important;
  backdrop-filter: blur(8px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
  box-sizing: border-box;
}

.hud-modal.hidden {
  display: none !important;
}

.hud-modal-card {
  background: #07111e;
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

.hud-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.25);
}

.hud-modal-close {
  background: transparent;
  border: none;
  color: var(--hud-cyan, #00f0ff);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hud-modal-close:hover {
  color: #fff;
  transform: scale(1.15);
}

.hud-modal-title {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}

.hud-label {
  display: block;
  font-size: 0.75rem;
  color: var(--hud-cyan);
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  letter-spacing: 1px;
}

.hud-form-group {
  margin-bottom: 0.5rem;
}

.hud-form-relative {
  position: relative;
}

.hud-input-group {
  display: flex;
  gap: 8px;
}

.hud-input {
  width: 100%;
  background: rgba(6, 14, 26, 0.9);
  border: 1px solid var(--border-hud);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.hud-btn-inline {
  white-space: nowrap;
  background: rgba(9, 164, 199, 0.25);
  border: 1px solid var(--hud-cyan, #00f0ff);
  color: #00f0ff;
  padding: 0 12px;
  cursor: pointer;
  font-weight: bold;
}

.hud-btn-parse {
  padding: 0 14px;
}

.hud-status-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #888;
}

.hud-divider {
  border: 0;
  border-top: 1px dashed rgba(0, 240, 255, 0.2);
  margin: 16px 0;
}

.hud-mb-2 {
  margin-bottom: 8px;
}

.hud-tag-pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-tag-pill {
  background: rgba(6, 14, 26, 0.8);
  border: 1px solid var(--hud-cyan);
  color: var(--hud-cyan);
  font-family: var(--font-hud);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-tag-pill.active, 
.hud-tag-pill:hover {
  background: var(--hud-cyan);
  color: #060e1a;
  box-shadow: 0 0 10px var(--hud-cyan);
}

.hud-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #060e1a;
  border: 1px solid var(--hud-cyan);
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 2100;
  margin-top: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.hud-suggestions.hidden {
  display: none;
}

.hud-suggestion-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--hud-text);
  cursor: pointer;
  border-bottom: 1px solid rgba(9, 164, 199, 0.15);
  transition: background 0.15s ease;
}

.hud-suggestion-item:last-child {
  border-bottom: none;
}

.hud-suggestion-item:hover {
  background: rgba(9, 164, 199, 0.25);
  color: #fff;
}

.hud-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.hud-btn-full {
  width: 100%;
  margin-top: 12px;
}

.hud-btn-submit {
  background: var(--hud-cyan) !important;
  color: #060e1a !important;
  border: 1px solid var(--hud-cyan) !important;
  font-weight: bold;
}

.hud-btn-submit:hover {
  background: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6) !important;
}

/* ==========================================================================
   MULTI-LINE PRESERVE & CLEAN SOLID HUD INPUT RECOVERY
   ========================================================================== */
#inputDesc,
.card-desc,
#infowindow p,
.hud-infowindow-details {
  white-space: pre-wrap !important;
  word-break: break-word;
}

.hud-input,
textarea.hud-input,
.hud-modal-card,
.hud-form-group,
.hud-btn,
.hud-input::before,
.hud-input::after,
textarea.hud-input::before,
textarea.hud-input::after,
.hud-btn::before,
.hud-btn::after {
  background-image: none !important;
  background-color: #071220 !important;
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.1) !important;
}

.hud-input::before,
.hud-input::after,
textarea.hud-input::before,
textarea.hud-input::after {
  display: none !important;
  content: none !important;
}

.hud-input:focus,
textarea.hud-input:focus {
  background-image: none !important;
  background-color: #0b1a2d !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
  outline: none;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (MOBILE & SHORT LANDSCAPE VIEWPORTS)
   ========================================================================== */
@media screen and (max-width: 768px) {
  #hudWeather,
  #hudClock {
    display: none !important;
  }

  .hud-header {
    padding: 6px 10px !important;
  }

  .hud-title {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .hud-select {
    max-width: 120px !important;
    font-size: 0.68rem !important;
  }

  #infowindow.hud-card {
    position: absolute !important;
    left: 64px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100% - 74px) !important;
    z-index: 2000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
  }

  .left-dock {
    top: 0 !important;
    left: 0 !important;
    gap: 6px !important;
    padding-top: 8px !important;
  }

  .dock-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }

  .hud-modal-card {
    width: 95% !important;
    max-height: 85vh !important;
    padding: 16px !important;
  }
}

@media screen and (max-height: 500px) {
  .hud-header {
    padding: 4px 8px !important;
  }

  .hud-title {
    font-size: 0.7rem !important;
  }

  .hud-select {
    font-size: 0.65rem !important;
    padding: 2px 18px 2px 6px !important;
  }

  .left-dock {
    gap: 4px !important;
    padding-top: 6px !important;
  }

  .dock-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
  }

  #infowindow.hud-card {
    top: 10px !important;
    left: 48px !important;
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   ACTIVITY LOG TERMINAL DRAWER
   ========================================================================== */
.activity-drawer {
  position: absolute;
  top: 0;
  left: 54px;
  width: 300px;
  height: 100%;
  background: var(--glass-hud);
  border-right: 1px solid var(--hud-cyan);
  backdrop-filter: blur(12px);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.activity-drawer.hidden {
  transform: translateX(-350px);
  opacity: 0;
  pointer-events: none;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(6, 14, 26, 0.95);
  border-bottom: 1px solid var(--border-hud);
}

.activity-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hud-cyan);
  letter-spacing: 1px;
}

.activity-stream {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  background: rgba(9, 164, 199, 0.05);
  border-left: 3px solid var(--hud-cyan);
  padding: 8px;
  font-size: 0.75rem;
  border-radius: 2px;
}

.activity-item.beacon {
  border-left-color: var(--green-pin);
}

.activity-item.pullup {
  border-left-color: var(--gold-pin);
}

.activity-item.purge {
  border-left-color: var(--red-pin);
}

.activity-time {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-bottom: 2px;
}

.activity-text {
  color: #fff;
  line-height: 1.3;
}

/* ==========================================================================
   TARGETING BANNER HUD OVERLAY
   ========================================================================== */
.target-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 14, 26, 0.95);
  border: 1px solid var(--hud-cyan);
  color: var(--hud-cyan);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  z-index: 4000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: pulse-cyan 1.5s infinite alternate;
}

.target-banner.hidden {
  display: none !important;
}

@keyframes pulse-cyan {
  0% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
  100% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); }
}