/* C:\Users\c6182\Desktop\folders\safe\Skillet_Comms\TheOperation_Work\pwa\app.css */

/* Core Theme Design System - Tactical Night Cyberpunk */
:root {
  --bg-dark: #080c10;
  --bg-darker: #040608;
  --bg-panel: rgba(10, 16, 24, 0.88);
  --border-color: rgba(0, 255, 157, 0.22);
  --border-glow: rgba(0, 255, 157, 0.5);
  
  /* Neons - Screenshot Palette */
  --neon-green: #00ff9d;
  --neon-volt: #a6ff00;
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-gold: #ffb000;
  --neon-amber: #ffd700;
  --neon-crimson: #ff3366;
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Typography */
  --font-tactical: 'Chakra Petch', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Precise PWA Mobile Viewport Dimensions */
  --app-header-height: 48px;
  --bottom-dock-height: calc(56px + max(12px, env(safe-area-inset-bottom, 12px)));
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  width: 100%;
  background-image: radial-gradient(circle at 50% 15%, #0e1726 0%, var(--bg-dark) 75%);
}

/* Glassmorphism Panel base */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

/* Main Frame Layout */
#game-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  padding-bottom: 74px; /* clearance for bottom dock */
  gap: 8px;
  overflow-x: hidden;
}

/* HEADER STYLE - PINNED 48PX TOP APP BAR */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 52px 0 12px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 16, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.logo-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.neon-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.5), 0 0 15px var(--neon-cyan);
  white-space: nowrap;
}

.sub-logo {
  display: none;
}

.header-status {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* System Dropdown Drawer */
.system-dropdown {
  position: fixed;
  top: 52px;
  right: 12px;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: rgba(10, 16, 32, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.25);
  padding: 12px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.system-dropdown.hidden {
  display: none !important;
}

.system-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
}

.system-telemetry-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.system-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.clock-hud {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1) inset;
  font-size: 0.75rem;
  white-space: nowrap;
}

.tick-hud {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--text-main);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* 4-Tab Navigation Containers */
.game-main {
  display: block;
  width: 100%;
  padding: 6px 10px;
  margin: 0;
  flex: 1;
}

.tab-content {
  display: none;
  width: 100%;
  animation: tabFadeIn 0.2s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pinned Bottom Dock Navigation Bar */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 15, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.dock-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
  gap: 2px;
}

.dock-tab:hover {
  color: #fff;
}

.dock-tab.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.dock-tab.active .dock-icon {
  transform: translateY(-2px) scale(1.1);
}

.dock-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.dock-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================================
   Phase 12.3: Asymmetric Platform Roles & Desktop Command Center Layout
   ============================================================================ */

/* Desktop Command Mainframe (screens >= 1024px and non-touch) */
body.role-command-desktop #game-container {
  max-width: 1920px;
  padding-bottom: 20px; /* No bottom dock clearance needed on desktop */
}

body.role-command-desktop .bottom-dock {
  display: none !important;
}

body.role-command-desktop .game-main,
body.role-command-desktop #main-content {
  display: grid !important;
  grid-template-columns: 320px 1fr 380px !important;
  grid-template-areas: "left center right" !important;
  gap: 16px;
  padding: 12px 16px;
  max-width: 1920px;
  margin: 0 auto;
  align-items: start;
}

body.role-command-desktop #pane-left {
  grid-area: left;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

body.role-command-desktop #pane-center {
  grid-area: center;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

body.role-command-desktop #pane-right {
  grid-area: right;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

body.role-command-desktop #map-viewport {
  height: clamp(380px, 60vh, 540px) !important;
  min-height: 380px;
}

/* Mobile Field Operative Mode (< 1024px or touch) */
body.role-field-operative .game-main,
body.role-field-operative #main-content {
  display: block !important;
  padding: 8px 10px;
}

body.role-field-operative:not(.active-tab-map) #main-content {
  padding: 10px 10px calc(var(--bottom-dock-height) + 16px) 10px !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
}

body.role-field-operative .bottom-dock {
  display: flex !important;
}

/* High-Density Status Cards & Bloomberg-Style Micro Tables */
.command-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
}

.command-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.command-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.command-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}

.command-status-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pill-active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pill-locked {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.4);
}

.dispatch-route-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 20, 35, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 8px 0;
  font-family: monospace;
  font-size: 0.72rem;
}

.dispatch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dispatch-node-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-weight: bold;
}

.dispatch-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  margin: 0 6px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  header {
    padding: 0 8px;
  }
  .neon-title {
    font-size: 1rem !important;
  }
  #dual-asset-banner {
    font-size: 0.7rem !important;
    padding: 3px 6px !important;
  }
  .game-main {
    padding: 4px 6px;
  }
}

/* BUTTONS */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-action {
  background: rgba(13, 20, 38, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  text-align: center;
  border-radius: 8px;
}

.btn-action:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* MAIN TABBED LAYOUT */
.game-main {
  display: block;
  width: 100%;
  padding: 8px 12px;
  flex: 1;
  min-height: calc(100vh - 124px);
  height: auto;
}

/* HEADERS */
.panel-header {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.panel-sub-header {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-top: 16px;
  margin-bottom: 8px;
}

/* LEFT COLUMN: CHARACTER SHEET */
.left-col {
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.character-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.char-avatar {
  background: linear-gradient(135deg, var(--neon-cyan), #0055ff);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #000;
  font-size: 1.3rem;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.char-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.char-lvl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* METERS */
.meters-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.meter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meter-track {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  transition: width 0.4s ease;
}

.hp-track .meter-fill {
  background: linear-gradient(90deg, #ff0055, var(--neon-pink));
  box-shadow: 0 0 10px var(--neon-pink);
}

.xp-track .meter-fill {
  background: linear-gradient(90deg, #00bbff, var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.stat-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--neon-cyan);
}

.stat-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* LEVELUP */
.levelup-prompt {
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--neon-green);
  border-radius: 8px;
  padding: 10px;
  margin-top: 12px;
  text-align: center;
  animation: pulse-border 1.5s infinite alternate;
}

@keyframes pulse-border {
  from { border-color: rgba(57, 255, 20, 0.4); }
  to { border-color: var(--neon-green); }
}

.levelup-title {
  font-size: 0.8rem;
  color: var(--neon-green);
  font-weight: 600;
  margin-bottom: 8px;
}

.levelup-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* NEEDS BARS */
.needs-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.need-row {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.need-name {
  width: 55px;
  color: var(--text-muted);
}

.need-bar-track {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 4px;
  margin: 0 10px;
  overflow: hidden;
}

.need-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.hunger-fill { background: #ff5e00; }
.energy-fill { background: #ffdd00; }
.social-fill { background: #00e1ff; }

.need-val {
  width: 35px;
  text-align: right;
  font-weight: 600;
}

/* GEAR & BAG */
.gear-sheet {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gear-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.gear-slot {
  color: var(--text-muted);
}

.gear-name {
  color: var(--neon-cyan);
  font-weight: 600;
}

.economy-strip {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.gold-wallet {
  color: var(--neon-orange);
  font-weight: 600;
}

.backpack-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
}

.bag-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.bag-slot:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  transform: scale(1.05);
}

.bag-slot.occupied {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.slot-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #0d1226;
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.65rem;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.bag-slot:hover .slot-tooltip {
  visibility: visible;
}

/* CENTER COLUMN: MAP */
.center-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.map-view-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 12px 0;
}

.map-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.map-cell.current-pos {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  animation: pulse-glow 1.5s infinite alternate;
}

.cell-bg-lbl {
  font-size: 1.5rem;
  opacity: 0.15;
}

.cell-marker {
  position: absolute;
  font-size: 1.1rem;
  z-index: 10;
  filter: drop-shadow(0 0 4px #000);
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px rgba(0, 240, 255, 0.2); }
  to { box-shadow: 0 0 20px rgba(0, 240, 255, 0.6); }
}

.zone-c { color: var(--neon-cyan); }
.zone-s { color: var(--neon-green); }
.zone-i { color: var(--neon-orange); }
.zone-p { color: #f0f; }
.zone-w { color: var(--neon-pink); }

.grid-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.legend-dot {
  font-weight: 800;
}

/* NPC CARD */
.npc-action-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1) inset;
}

.npc-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.npc-avatar {
  font-size: 1.8rem;
  background: rgba(57, 255, 20, 0.1);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.npc-name {
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.npc-type {
  font-size: 0.75rem;
  color: var(--neon-green);
}

.npc-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.3;
}

/* CONTROLS CARD */
.controls-card {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.compass-pad {
  position: relative;
  width: 140px;
  height: 140px;
}

.compass-btn {
  position: absolute;
  background: rgba(13, 20, 38, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.compass-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.compass-n { top: 0; left: 48px; }
.compass-s { bottom: 0; left: 48px; }
.compass-w { left: 0; top: 48px; }
.compass-e { right: 0; top: 48px; }

.compass-center {
  position: absolute;
  top: 48px;
  left: 48px;
  width: 44px;
  height: 44px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed rgba(0, 240, 255, 0.2);
  border-radius: 50%;
}

.action-buttons-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  flex: 1;
}

/* RIGHT COLUMN: TERMINAL LOG */
.right-col {
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.narrative-screen {
  flex: 1;
  background: #03050b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 6px;
}

.travel-line { border-color: var(--neon-cyan); color: #c4f3ff; }
.combat-line { border-color: var(--neon-pink); color: #ffd6e8; }
.quest-line { border-color: var(--neon-orange); color: #ffe8d6; }
.save-line { border-color: var(--neon-green); color: #d6ffd6; }
.system-line { border-color: var(--text-muted); color: var(--text-muted); }

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 12px;
  z-index: 1000;
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* SHOP LIST */
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
}

.shop-details {
  display: flex;
  flex-direction: column;
}

.shop-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.shop-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shop-buy-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-price {
  color: var(--neon-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

/* JOBS LIST */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.job-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.job-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.job-rewards {
  font-size: 0.75rem;
  color: var(--neon-cyan);
}

.job-status-lbl {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

.job-status-avail { background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); }
.job-status-active { background: rgba(255, 159, 0, 0.1); color: var(--neon-orange); }
.job-status-comp { background: rgba(57, 255, 20, 0.1); color: var(--neon-green); }

/* =========================================================
   POKÉMON GO-STYLE CYBERPUNK AR ENCOUNTER & OVERRIDE HUD (v116)
   ========================================================= */
.ar-combat-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #030612;
}

#combat-camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

#combat-ar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
}

.ar-combat-scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  opacity: 0.65;
}

.ar-hud-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top, 14px)) 14px max(14px, env(safe-area-inset-bottom, 14px));
  box-sizing: border-box;
}

.ar-hud-overlay * {
  pointer-events: auto;
}

/* TOP ENEMY CARD */
.ar-hud-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.ar-target-card {
  background: rgba(8, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
}

.ar-target-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ar-enemy-title {
  font-family: var(--font-tactical), 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.ar-threat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 0, 85, 0.2);
  border: 1px solid #ff0055;
  color: #ff6699;
  letter-spacing: 0.5px;
}

.ar-hp-meter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ar-hp-track {
  background: rgba(255, 255, 255, 0.12);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.ar-hp-fill {
  background: linear-gradient(90deg, #00ff9d, #00f0ff);
  height: 100%;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
  transition: width 0.35s ease;
}

.ar-hp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #a0aec0;
  font-family: monospace;
}

/* TOP CONTROLS & MOMENTUM PILL */
.ar-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ar-cadence-badge {
  background: linear-gradient(90deg, rgba(255, 234, 0, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid #ffea00;
  color: #fffb8f;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  text-shadow: 0 0 8px rgba(255, 234, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: cadencePulse 1.8s infinite alternate;
}

@keyframes cadencePulse {
  0% { box-shadow: 0 0 6px rgba(255, 234, 0, 0.3); }
  100% { box-shadow: 0 0 16px rgba(255, 234, 0, 0.8); }
}

.ar-btn-group {
  display: flex;
  gap: 8px;
}

.btn-ar-pill {
  background: rgba(14, 26, 48, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-family: var(--font-tactical), 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ar-pill.active {
  background: rgba(0, 240, 255, 0.25);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.btn-ar-close {
  background: rgba(255, 0, 85, 0.2);
  border: 1px solid rgba(255, 0, 85, 0.4);
  color: #ff6699;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* CENTER TOAST BANNER */
.ar-toast-banner {
  align-self: center;
  background: rgba(3, 8, 20, 0.9);
  border: 2px solid #00f0ff;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 24px;
  font-family: var(--font-tactical), 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 12px rgba(0, 240, 255, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(1);
}

/* BOTTOM CONTROL DECK */
.ar-hud-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Transponder Ball Selector */
.ar-transponder-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px;
  box-sizing: border-box;
  scrollbar-width: none;
}

.ar-transponder-carousel::-webkit-scrollbar {
  display: none;
}

.ar-transponder-pill {
  background: rgba(10, 20, 36, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.2s ease;
}

.ar-transponder-pill.selected {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.22);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.ar-transponder-pill .disc-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ar-transponder-pill .label {
  font-family: var(--font-tactical), 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.ar-transponder-pill .count {
  font-size: 0.70rem;
  color: #00f0ff;
  font-weight: 800;
  font-family: monospace;
}

/* Tactical Action Drawer */
.ar-action-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 6px;
  box-sizing: border-box;
  width: 100%;
}

.btn-ar-tactical {
  background: rgba(16, 28, 48, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #ffffff;
  font-family: var(--font-tactical), 'Outfit', sans-serif;
  padding: 6px 2px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  min-height: 50px;
  box-sizing: border-box;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-ar-tactical:hover, .btn-ar-tactical:active {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ar-tactical.btn-ar-flee {
  border-color: rgba(255, 0, 85, 0.4);
  color: #ff6699;
}
.btn-ar-tactical.btn-ar-flee:hover, .btn-ar-tactical.btn-ar-flee:active {
  background: rgba(255, 0, 85, 0.25);
  border-color: #ff0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.btn-ar-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
}

.btn-ar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
  display: block;
  white-space: nowrap;
}

.btn-ar-sub {
  font-size: 0.58rem;
  color: var(--neon-gold, #ffb000);
  font-family: monospace;
  line-height: 1;
  display: block;
}

/* Post-battle Log Screen */
#combat-log-screen {
  background: rgba(3, 6, 12, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  padding: 10px;
  color: #e2e8f0;
  font-size: 0.78rem;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 4px;
}

/* HELP BODY */
.help-body h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--neon-cyan);
}

.help-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.help-body ul {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 16px;
  margin-bottom: 8px;
}

/* UTILS */
.hidden {
  display: none !important;
}

/* RESPONSIVE LAYOUT CARDS */
@media (max-width: 1000px) {
  .game-main {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
  
  .left-col, .right-col {
    max-height: none;
  }
}

/* GPS HUD STYLINGS */
.gps-info-hud {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05) inset;
  letter-spacing: 0.5px;
}

/* MULTIPLAYER LOBBY STYLINGS */
.lobby-player-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lobby-player-entry:last-child {
  border-bottom: none;
}

.lobby-coord {
  font-family: monospace;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* ================= AR HUD & RADAR SCANNER STYLINGS ================= */

/* Radar sweep rotation */
.ar-radar-container {
  box-shadow: 0 0 15px rgba(0, 255, 100, 0.3);
}

.ar-radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(0, 255, 100, 0.15) 0deg, rgba(0, 255, 100, 0) 90deg);
  border-radius: 50%;
  animation: radar-sweep-spin 3s linear infinite;
  pointer-events: none;
}

@keyframes radar-sweep-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sonar radar blip */
.ar-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px currentColor;
}

/* Floating HUD cards */
.ar-hologram-card {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(13, 19, 38, 0.85);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 10px;
  min-width: 130px;
  color: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  pointer-events: auto;
  transition: opacity 0.1s ease-out, transform 0.1s ease-out;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ar-hologram-card.targeted {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
  transform: translate(-50%, -50%) scale(1.08);
}

/* LEAFLET DARK MAP CUSTOM STYLES */
#leaflet-canvas {
  width: 100%;
  height: 100%;
  background: #0b0f19 !important;
}

.leaflet-container {
  background: #0b0f19 !important;
  font-family: 'Inter', sans-serif !important;
}

.leaflet-tile {
  filter: none !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(13, 20, 38, 0.9) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--neon-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3) !important;
  border-radius: 8px !important;
}

.leaflet-popup-tip {
  background: rgba(13, 20, 38, 0.9) !important;
  border: 1px solid var(--neon-cyan) !important;
}

.landmark-marker {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.landmark-marker:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   PHASE 8: CRT SCANLINES, SETTINGS DRAWER, SYNDICATE TURF & SKILL TREES
   ========================================================================== */

/* GPU-Accelerated Pure CSS CRT Scanline & Vignette Overlay */
#crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: overlay;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.75) 100%);
  background-size: 100% 4px, 100% 100%;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

#crt-overlay.crt-off {
  display: none !important;
  opacity: 0 !important;
}

body.crt-active h1, 
body.crt-active h2, 
body.crt-active h3,
body.crt-active .stat-val {
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.6);
}

/* Settings Slide-Over Drawer */
.settings-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #0d1326;
  border-left: 2px solid var(--neon-cyan);
  box-shadow: -10px 0 30px rgba(0, 240, 255, 0.2);
  z-index: 10001;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.settings-drawer.open {
  right: 0;
}

.settings-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 12px;
}

.settings-drawer-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.btn-drawer-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.setting-desc {
  font-size: 0.72rem;
  color: #8fa0b5;
}

/* Cyberpunk Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  transition: .25s;
  border-radius: 24px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #94a3b8;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(0, 240, 255, 0.3);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--neon-cyan);
}

/* Syndicate & Skill Buttons in Header */
.header-action-btn {
  background: rgba(13, 20, 38, 0.8);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-action-btn:hover {
  background: var(--neon-cyan);
  color: #0b0f19;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Syndicate Turf Modal Styling */
.syndicate-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.syndicate-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.syndicate-card.omlf {
  border-left: 4px solid #00ffcc;
}

.syndicate-card.apex {
  border-left: 4px solid #ffd700;
}

.syndicate-card.gigx {
  border-left: 4px solid #ff007f;
}

.syndicate-card.pledged {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.syndicate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.syndicate-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.omlf-color { color: #00ffcc; }
.apex-color { color: #ffd700; }
.gigx-color { color: #ff007f; }

.syndicate-tagline {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

.syndicate-perk-badge {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Influence Bar */
.influence-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.influence-bar-track {
  height: 8px;
  width: 100%;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.influence-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.influence-segment.omlf { background: #00ffcc; }
.influence-segment.apex { background: #ffd700; }
.influence-segment.gigx { background: #ff007f; }

/* Skill Tree Modal Styling */
.skills-trees-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

.skill-branch {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-branch-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-cyan);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-card {
  background: rgba(13, 20, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.skill-card.unlocked {
  border-color: #00ffcc;
  background: rgba(0, 255, 204, 0.08);
}

.skill-card.available {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.skill-card.locked {
  opacity: 0.55;
}

.skill-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.skill-tier-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #1e293b;
  color: #94a3b8;
}

.skill-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

.btn-unlock-skill {
  align-self: flex-start;
  margin-top: 4px;
  background: transparent;
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unlock-skill:hover {
  background: #ffd700;
  color: #0b0f19;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Phase 12.5: Map Viewport Floating Overlays & Proximity Action Pills */
.map-pill-ar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  font-size: 0.72rem;
  padding: 5px 12px;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.map-pill-ar:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.4);
}

#btn-chad-proximity {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1000;
  font-size: 0.75rem;
  padding: 7px 15px;
  background: rgba(14, 18, 28, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  animation: chadPillPulse 2.5s infinite;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#btn-chad-proximity:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.65);
  transform: scale(1.03);
}

@keyframes chadPillPulse {
  0% {
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
    border-color: rgba(0, 240, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.65);
    border-color: var(--neon-cyan);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
    border-color: rgba(0, 240, 255, 0.6);
  }
}

/* Phase 12.6: Tactical Map Viewport & Controls with 10px Negative Space */
body.role-field-operative #game-container {
  padding-bottom: var(--bottom-dock-height) !important;
  gap: 0 !important;
}

body.role-field-operative:has(#tab-content-map.active),
body.role-field-operative.active-tab-map {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.role-field-operative:has(#tab-content-map.active) #game-container,
body.role-field-operative.active-tab-map #game-container {
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  padding-bottom: 0 !important;
  gap: 0 !important;
}

body.role-field-operative:has(#tab-content-map.active) #game-container,
body.role-field-operative.active-tab-map #game-container {
  width: 100% !important;
  max-width: 100% !important;
}

body.role-field-operative:has(#tab-content-map.active) #main-content,
body.role-field-operative.active-tab-map #main-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 8px !important;
  margin: 0 !important;
  height: calc(100dvh - var(--app-header-height) - var(--bottom-dock-height)) !important;
  max-height: calc(100dvh - var(--app-header-height) - var(--bottom-dock-height)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.role-field-operative #pane-center {
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.role-field-operative #tab-content-map {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.12) !important;
  min-height: 0 !important;
}

body.role-field-operative .full-bleed-map {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
}

body.role-field-operative .map-viewport-fullbleed {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 0 11px 11px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Streamlined Minimal Single-Row Tactical Telemetry Ticker */
.map-telemetry-ticker {
  height: 26px;
  line-height: 26px;
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  background: rgba(6, 10, 20, 0.94);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  z-index: 100;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
}

.telemetry-ticker-left {
  color: var(--neon-green);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.telemetry-ticker-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.telemetry-hex-pill {
  font-size: 0.64rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid var(--border-color);
  font-weight: bold;
}

/* Floating Edge Controls */
.map-floating-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
  align-items: center;
}

.map-pill-btn {
  font-size: 0.7rem;
  padding: 5px 11px;
  background: rgba(14, 18, 28, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.map-pill-btn:hover, .map-pill-btn:active {
  background: rgba(0, 240, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

/* Collapsible Bottom Navigation Drawer / District Sheet */
.district-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--neon-cyan);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.2);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.district-bottom-sheet.collapsed .district-drawer-content {
  display: none;
}

.district-drawer-peek {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: rgba(14, 22, 38, 0.92);
}

.district-drawer-peek:hover {
  background: rgba(20, 32, 54, 0.95);
}

.drawer-peek-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  min-width: 0;
  overflow: hidden;
}

.drawer-peek-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.drawer-peek-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-weight: bold;
  flex-shrink: 0;
}

.drawer-chevron {
  font-size: 0.65rem;
  color: var(--neon-cyan);
  transition: transform 0.25s ease;
  margin-left: 4px;
}

.district-bottom-sheet:not(.collapsed) .drawer-chevron {
  transform: rotate(180deg);
}

.district-drawer-content {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  animation: fadeIn 0.2s ease;
}

.drawer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drawer-title {
  font-family: var(--font-tactical);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon-green);
  letter-spacing: 1px;
}

.drawer-hex {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}

.drawer-corridor-box {
  height: 52px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.corridor-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.2);
  border: 1.5px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.corridor-status-tag {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-green);
  font-weight: bold;
}

.map-pill-mode .btn-mode {
  transition: all 0.2s ease;
}

.map-pill-mode .btn-mode.active {
  background: var(--neon-cyan) !important;
  color: #000 !important;
}

.map-pill-comms:hover {
  background: rgba(0, 240, 255, 0.25) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6) !important;
}

@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--neon-cyan)); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 8px var(--neon-cyan)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--neon-cyan)); }
}

/* AudioHandler Comms Transcript Toast */
#comms-transcript-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  max-width: 90vw;
  width: 380px;
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

#comms-transcript-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#comms-transcript-toast .comms-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--neon-cyan);
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#comms-transcript-toast .comms-pulse {
  color: var(--neon-cyan);
  animation: pulseGlow 1.2s infinite;
}

#comms-transcript-toast .comms-body {
  font-size: 0.84rem;
  color: #fff;
  line-height: 1.35;
}

/* 3-Tier Storage Engine */
.inventory-tier-selector .btn {
  border-radius: 4px;
  transition: all 0.15s ease;
}

.inventory-tier-selector .btn.active {
  background: var(--neon-cyan) !important;
  color: #000 !important;
  font-weight: bold;
}

/* Avatar Portrait Tap & Auto-Crop Badge */
.avatar-edit-badge {
  pointer-events: none;
  transition: opacity 0.2s;
}

.char-avatar:hover .avatar-edit-badge {
  background: rgba(0, 240, 255, 0.8) !important;
  color: #000 !important;
  font-weight: bold;
}

/* City Shop Slide-Up Sheet Animation */
@keyframes slideUpSheet {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Portrait 9:16 Responsiveness for Setup & Chronicle Modals */
@media (max-aspect-ratio: 9/16), (max-width: 480px) {
  .new-chronicle-inputs {
    flex-direction: column !important;
  }
  .new-chronicle-inputs input,
  .new-chronicle-inputs select {
    width: 100% !important;
  }
}

/* Accordion Panel Polish */
.accordion-panel summary::-webkit-details-marker {
  display: none;
}

.accordion-panel summary {
  list-style: none;
  user-select: none;
}

/* Delivery Vector Acceptance Touch & Click States */
.btn-accept-vector {
  touch-action: manipulation;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accept-vector:active {
  transform: scale(0.96);
}

/* Gatekeeping: Strip Desktop Drafting Controls on Mobile */
body.role-field-operative .desktop-only-pane,
body.role-field-operative .desktop-only-controls {
  display: none !important;
}

body.role-command-desktop .mobile-only-controls {
  display: none !important;
}

/* Floating Map Odometer & Live Session Telemetry */
.map-pill-odometer {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  font-size: 0.65rem;
  padding: 4px 8px;
  background: rgba(14, 18, 28, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  border-radius: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

/* Field Diagnostics Block (Tab 2) */
.field-diagnostics-card {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

/* ==========================================================================
   PHASE 12.9 MASTER FIELD DIRECTIVE: PROGRESS BARS, SETTINGS HUB, OVERFLOW
   ========================================================================== */

/* Visual Fill Bars for Survival Needs */
.need-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}

.need-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.hunger-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.energy-fill {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc) !important;
}

.rep-fill {
  background: linear-gradient(90deg, #10b981, #059669) !important;
}

/* Header In-Flow Settings & Action Buttons */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-footwork-hub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-footwork-hub:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.btn-settings-widget {
  position: static !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: rgba(14, 18, 28, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  touch-action: manipulation !important;
  flex-shrink: 0 !important;
}

.btn-settings-widget:hover {
  background: rgba(0, 240, 255, 0.2) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5) !important;
}

.btn-settings-widget:active {
  transform: scale(0.95) !important;
}

/* Operative Settings Hub Modal */
#modal-settings .modal-content {
  background: rgba(10, 15, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
}

.settings-actions-grid .btn {
  border-radius: 6px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.settings-actions-grid .btn:hover {
  transform: translateY(-1px);
}

.settings-actions-grid .btn:active {
  transform: translateY(1px);
}

/* Reactive Balance Sync Animated Green Highlight */
@keyframes highlightGreen {
  0% {
    color: #fff;
    text-shadow: none;
    transform: scale(1);
  }
  30% {
    color: #10b981;
    text-shadow: 0 0 12px #10b981, 0 0 20px rgba(16, 185, 129, 0.7);
    transform: scale(1.15);
  }
  70% {
    color: #34d399;
    text-shadow: 0 0 8px #10b981;
    transform: scale(1.05);
  }
  100% {
    color: inherit;
    text-shadow: none;
    transform: scale(1);
  }
}

.highlight-updated {
  animation: highlightGreen 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-block;
}

/* Mobile Dynamic Type & Viewport Vertical Overflow Tuning */
#pane-left,
#pane-right,
#tab-content-agent,
.tab-content.active {
  max-height: calc(100vh - env(safe-area-inset-bottom, 0px) - 64px);
  max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-header {
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* Phase 12.9.1: In-Range Lit-Up Node Visuals & Pulsing Radar Halo */
@keyframes nodeBeaconPulse {
  0% {
    box-shadow: 0 0 10px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.6);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 25px #00f0ff, 0 0 45px rgba(57, 255, 20, 0.8), 0 0 65px rgba(0, 240, 255, 0.95);
    transform: scale(1.35);
    filter: brightness(1.5);
  }
  100% {
    box-shadow: 0 0 10px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.6);
    transform: scale(1);
    filter: brightness(1);
  }
}

.poi-lit-up,
.poi-marker-in-range > div {
  animation: nodeBeaconPulse 1.2s infinite ease-in-out !important;
  border-color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.45) !important;
  z-index: 1000 !important;
}

@keyframes radarCirclePulse {
  0% {
    stroke-opacity: 0.95;
    fill-opacity: 0.28;
    stroke-width: 3.5px;
  }
  50% {
    stroke-opacity: 0.4;
    fill-opacity: 0.08;
    stroke-width: 1.5px;
  }
  100% {
    stroke-opacity: 0.95;
    fill-opacity: 0.28;
    stroke-width: 3.5px;
  }
}

.leaflet-pulsing-proximity-circle {
  animation: radarCirclePulse 1.6s infinite ease-in-out;
}

/* ================= CORE FREEZE: CRT INTERCEPTOR & DIEGETIC CUT-INS ================= */
.crt-interceptor-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.crt-interceptor-frame {
  width: 100%;
  max-width: 620px;
  background: #02070e;
  border: 2px solid #00f0ff;
  border-radius: 8px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  color: #00f0ff;
}

/* Scanlines and phosphor flicker */
.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.3) 0px,
    rgba(0, 0, 0, 0.3) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 10;
  opacity: 0.75;
}

.crt-screen-content {
  padding: 24px;
  position: relative;
  z-index: 5;
}

.crt-glitch-header {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  padding-bottom: 10px;
  margin-bottom: 16px;
  color: #38bdf8;
}

.crt-transcript-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
  background: rgba(0, 240, 255, 0.04);
  border-left: 3px solid #00f0ff;
  padding: 14px 16px;
  margin-bottom: 20px;
  min-height: 70px;
}

/* ================= CORE FREEZE: WEATHER & ENCUMBRANCE HUD ================= */
.core-freeze-hud-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 8px;
}

.hud-pill {
  font-family: monospace;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hud-pill-weather {
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.hud-pill-encumbrance {
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.hud-pill-archetype {
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

/* ==========================================================================
   THE OPERATION: SCREENSHOT-AUTHENTIC FLOW UI SKIN
   Matches the 5 Master Mobile Screenshots:
   1. Onboarding / Role Selection (Industrial Bulkhead & 3 Bevelled Role Cards)
   2. Map View (Tactical Night Grid, Compass Rose, World Inset, POIs)
   3. Modal View (Wireframe Clinic, Segmented Danger Bars, INITIATE GIG)
   4. Dossier View (Human Silhouette, Equipment Loadout Grid, Circular Dials)
   5. Ops View (District Overview, Quick Sync, Contracts, Squad Code)
   ========================================================================== */

.flow-app-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #fff;
  font-family: 'Chakra Petch', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  z-index: 10000;
  overflow: hidden;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile Frame Wrapper */
.flow-mobile-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 920px;
  background: #02070c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.15);
  border-left: 1px solid rgba(0, 245, 255, 0.15);
  border-right: 1px solid rgba(0, 245, 255, 0.15);
}

.flow-mobile-viewport * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flow-mobile-viewport *::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {
  .hud-fiat-segment {
    display: none !important;
  }
  .flow-mobile-viewport {
    max-width: 100vw;
    max-height: 100vh;
    border: none;
  }
}

/* 1. Header Bar */
.flow-header-hud {
  height: 58px;
  background: rgba(3, 10, 18, 0.95);
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.flow-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-header-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #00F5FF;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05141e;
  cursor: pointer;
}

.flow-header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.45);
}

.flow-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-header-credits {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-header-level {
  font-size: 0.88rem;
  color: #38bdf8;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 10px;
}

.flow-header-gear-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
}

.flow-header-gear-btn:hover {
  color: #00F5FF;
}

/* 2. Bottom Navigation Bar */
.flow-bottom-tabbar {
  height: 64px;
  background: rgba(3, 8, 14, 0.98);
  border-top: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.flow-tab-btn {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  padding: 0;
}

.flow-tab-btn.active {
  color: #00FF41;
}

.flow-tab-glow-bar {
  position: absolute;
  top: 0;
  width: 44px;
  height: 3px;
  background: #00FF41;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 12px #00FF41, 0 0 20px #00FF41;
  display: none;
}

.flow-tab-btn.active .flow-tab-glow-bar {
  display: block;
}

.flow-tab-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.2s;
}

.flow-tab-btn.active .flow-tab-icon {
  filter: drop-shadow(0 0 8px #00FF41);
  transform: scale(1.08);
}

.flow-tab-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* 3. Screen Viewport */
.flow-screen-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #02070c;
}

/* ==========================================================================
   SCREEN 1: ONBOARDING / ROLE SELECTION GATE
   ========================================================================== */
.flow-onboarding-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 16px max(64px, env(safe-area-inset-bottom, 64px)) 16px;
  box-sizing: border-box;
  z-index: 50;
  overflow-y: auto;
  gap: 6px;
}

.flow-onboarding-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2px;
}

.flow-onboarding-logo {
  display: none;
}

.flow-onboarding-logo-inline {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 176, 0, 0.7));
}

.flow-onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: rgba(255, 176, 0, 0.75);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  margin-top: 4px;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.flow-onboarding-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: #00FF41;
  letter-spacing: 1.1px;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.6);
  margin-bottom: 4px;
  font-family: 'Space Mono', monospace;
}

/* ==========================================================================
   CALLSIGN / PLAYER NAME ENTRY GATE
   ========================================================================== */
.flow-name-card-container {
  width: 90%;
  max-width: 360px;
  background: rgba(10, 20, 30, 0.85);
  border: 1px solid rgba(0, 255, 65, 0.4);
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 255, 65, 0.08);
  backdrop-filter: blur(12px);
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-name-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-name-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #FFB000;
  text-transform: uppercase;
}

.flow-input-row {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(0, 255, 65, 0.5);
  border-radius: 4px;
  padding: 4px 8px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.flow-input-row:focus-within {
  border-color: #00E5FF;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.flow-input-prefix {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: #00FF41;
}

.flow-name-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.flow-name-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.flow-random-btn {
  background: rgba(255, 176, 0, 0.15);
  border: 1px solid rgba(255, 176, 0, 0.5);
  color: #FFB000;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.flow-random-btn:hover {
  background: rgba(255, 176, 0, 0.3);
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.5);
}

.flow-quick-callsigns-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-quick-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
}

.flow-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-chip-btn {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00E5FF;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.flow-chip-btn:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00E5FF;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.flow-name-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin: 0;
}

.flow-onboarding-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.flow-role-card-item {
  width: 55%;
  max-width: 220px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid transparent;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.flow-role-card-item img {
  width: 100%;
  height: auto;
  display: block;
}

.flow-role-card-item:hover {
  transform: translateY(-2px);
}

.flow-role-card-item.selected {
  border-color: #00FF41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.55);
}

.flow-role-card-item.selected::after {
  content: "ACTIVE SELECTION";
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 255, 65, 0.9);
  color: #000;
  font-size: 0.45rem;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

/* SMS Toggle Row */
.flow-sms-row {
  width: 70%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 176, 0, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  box-sizing: border-box;
  margin: 4px auto;
}

.flow-sms-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.flow-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.flow-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  transition: 0.3s;
  border-radius: 18px;
  border: 1px solid #FFB000;
}

.flow-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: #FFB000;
  box-shadow: 0 0 6px #FFB000;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .flow-slider {
  background-color: rgba(255, 176, 0, 0.25);
}

input:checked + .flow-slider:before {
  transform: translateX(14px);
}

.flow-sms-text {
  display: flex;
  flex-direction: column;
}

.flow-sms-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}

.flow-sms-subtext {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.6);
}

.flow-sms-meta {
  font-size: 0.52rem;
  font-family: 'Space Mono', monospace;
  color: rgba(0, 255, 65, 0.55);
  line-height: 1.25;
  text-align: right;
}

.flow-btn-continue {
  width: 55%;
  max-width: 220px;
  height: 38px;
  background: rgba(0, 255, 65, 0.15);
  border: 1.5px solid #00FF41;
  color: #00FF41;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  font-family: 'Space Mono', monospace;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
  transition: all 0.2s;
  flex-shrink: 0;
  margin: 4px auto 0 auto;
}

.flow-btn-continue:hover {
  background: #00FF41;
  color: #000;
  box-shadow: 0 0 30px #00FF41;
}

/* ==========================================================================
   TERMS OF SERVICE & SMS OPT-IN SCROLL GATE
   ========================================================================== */
.flow-terms-container {
  width: 92%;
  max-width: 380px;
  background: rgba(8, 14, 24, 0.92);
  border: 1.5px solid rgba(0, 245, 255, 0.4);
  border-radius: 8px;
  padding: 12px 14px;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 0 16px rgba(0, 245, 255, 0.08);
  backdrop-filter: blur(14px);
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-terms-scroll-area {
  max-height: 130px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #94a3b8;
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: #00F5FF rgba(0, 0, 0, 0.5);
}

.flow-terms-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.flow-terms-scroll-area::-webkit-scrollbar-thumb {
  background: #00F5FF;
  border-radius: 4px;
}

.flow-terms-section-title {
  color: #FFB000;
  font-weight: 700;
  font-size: 0.65rem;
  margin-top: 6px;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flow-terms-section-text {
  margin: 0 0 6px 0;
  color: #cbd5e1;
}

.flow-terms-highlight {
  color: #00FF41;
  font-weight: 700;
}

.flow-terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 2px;
  cursor: pointer;
}

.flow-terms-checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00FF41;
  margin-top: 2px;
  cursor: pointer;
}

.flow-terms-checkbox-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #f1f5f9;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.flow-phone-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flow-phone-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #FFB000;
  font-weight: 700;
  letter-spacing: 1px;
}

.flow-phone-row {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: 1.5px solid rgba(0, 245, 255, 0.5);
  border-radius: 4px;
  padding: 4px 8px;
  gap: 6px;
}

.flow-phone-row:focus-within {
  border-color: #00FF41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.flow-phone-prefix {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: #00FF41;
  font-weight: 800;
}

.flow-phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.flow-phone-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.flow-phone-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.flow-btn-accept-terms {
  width: 70%;
  max-width: 260px;
  height: 38px;
  background: rgba(0, 255, 65, 0.15);
  border: 1.5px solid #00FF41;
  color: #00FF41;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: 'Space Mono', monospace;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
  transition: all 0.2s;
  flex-shrink: 0;
  margin: 4px auto 0 auto;
}

.flow-btn-accept-terms:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
}

.flow-btn-accept-terms:not(:disabled):hover {
  background: #00FF41;
  color: #000;
  box-shadow: 0 0 25px #00FF41;
}

/* ==========================================================================
   SCREEN 2: TACTICAL MAP VIEW
   ========================================================================== */
.flow-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flow-map-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interactive Hotspots positioned over the map */
.flow-hotspot-poi {
  position: absolute;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.flow-hotspot-poi:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
}

/* Zoom controls */
.flow-zoom-controls {
  position: absolute;
  bottom: 24px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 30;
}

.flow-zoom-btn {
  width: 36px;
  height: 36px;
  background: rgba(4, 14, 22, 0.9);
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: #00F5FF;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SCREEN 3: OPS VIEW
   ========================================================================== */
.flow-ops-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-ops-card {
  background: rgba(4, 12, 20, 0.88);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.flow-card-heading-gold {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.flow-quick-sync-body {
  display: flex;
  gap: 12px;
}

.flow-quick-sync-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.flow-btn-edit-pill {
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: #00F5FF;
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.flow-vitals-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-bar-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
}

.flow-track {
  height: 6px;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-fill-health {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e 75%, #eab308 100%);
  box-shadow: 0 0 6px #22c55e;
}

.flow-substats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.flow-rep-bars {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.flow-rep-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.6rem;
}

/* Contract Item */
.flow-contract-item {
  background: rgba(2, 6, 12, 0.7);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-left: 3px solid #FFB000;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.flow-contract-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.flow-contract-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1px;
}

.flow-contract-reward {
  font-size: 0.68rem;
  color: #00F5FF;
  font-weight: 600;
  margin-top: 2px;
}

.flow-btn-accept {
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid #00F5FF;
  color: #00F5FF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
}

.flow-btn-accept:hover {
  background: #00F5FF;
  color: #000;
}

/* ==========================================================================
   SCREEN 4: AGENT / DOSSIER VIEW
   ========================================================================== */
.flow-dossier-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-dossier-top-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-silhouette-card {
  background: rgba(4, 12, 20, 0.88);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.flow-silhouette-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
}

.flow-equip-grid-amber {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.flow-equip-slot-amber {
  background: rgba(2, 6, 12, 0.85);
  border: 1px solid #FFB000;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  min-height: 52px;
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.2);
}

.flow-equip-slot-amber.wide {
  grid-column: span 2;
}

.flow-equip-slot-amber img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.flow-no-item {
  color: #FFB000;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.flow-dossier-vitals-card {
  background: rgba(4, 12, 20, 0.88);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-dial-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-dial-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #00F5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #00F5FF;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
  flex-shrink: 0;
}

.flow-dial-info {
  flex: 1;
}

.flow-dial-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.flow-dial-val {
  font-size: 0.65rem;
  color: #38bdf8;
  margin-top: 1px;
}

.flow-history-card {
  background: rgba(2, 6, 12, 0.85);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 6px;
  padding: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: rgba(0, 245, 255, 0.7);
  line-height: 1.4;
}

/* ==========================================================================
   SCREEN 5: POI DATA MODAL (AUTHENTIC TO SCREENSHOT)
   ========================================================================== */
.flow-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.flow-poi-modal-box {
  width: 100%;
  max-width: 400px;
  background: rgba(4, 14, 22, 0.94);
  border: 1.5px solid #00F5FF;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.35);
  position: relative;
}

.flow-poi-modal-box::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-top: 3px solid #00F5FF;
  border-left: 3px solid #00F5FF;
}

.flow-poi-modal-box::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-bottom: 3px solid #00F5FF;
  border-right: 3px solid #00F5FF;
}

.flow-poi-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 245, 255, 0.25);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.flow-poi-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #00F5FF;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.flow-poi-close-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
}

.flow-poi-close-btn:hover {
  color: #00F5FF;
}

.flow-poi-content-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.flow-wireframe-container {
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.flow-target-tag {
  font-size: 0.58rem;
  color: #FFB000;
  font-family: 'Space Mono', monospace;
  margin-bottom: 4px;
}

.flow-wireframe-img {
  width: 100%;
  height: auto;
  display: block;
}

.flow-poi-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.flow-spec-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-spec-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.flow-spec-val-high {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1px;
}

.flow-danger-segmented-bars {
  display: flex;
  gap: 2px;
  height: 7px;
  margin-top: 2px;
}

.flow-danger-bar-segment {
  flex: 1;
  background: #ef4444;
  border-radius: 1px;
  box-shadow: 0 0 4px #ef4444;
}

.flow-spec-val-cyan {
  font-size: 0.85rem;
  font-weight: 700;
  color: #00F5FF;
}

.flow-btn-initiate-gig {
  width: 100%;
  height: 44px;
  background: rgba(0, 245, 255, 0.15);
  border: 1.5px solid #00F5FF;
  color: #00F5FF;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
  transition: all 0.2s;
}

.flow-btn-initiate-gig:hover {
  background: #00F5FF;
  color: #000;
  box-shadow: 0 0 30px #00F5FF;
}

/* =========================================================================
   MASTER SCREENSHOT AUTHENTIC DESIGN OVERLAYS (VANILLA ENGINE)
   ========================================================================= */

/* 1. TOP APP BAR */
header#top-app-bar {
  background: rgba(8, 12, 18, 0.95) !important;
  border-bottom: 1px solid rgba(0, 255, 157, 0.25) !important;
  backdrop-filter: blur(16px) !important;
  padding: 0 14px !important;
  height: 52px !important;
  min-height: 52px !important;
}

.neon-title {
  font-family: var(--font-tactical) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7), 0 0 20px rgba(0, 240, 255, 0.3) !important;
}

/* Compact Header Branding: Hero Player Name + Small TheOperation Tag */
.header-identity-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.header-game-brand {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1;
}

.header-hero-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.neon-title-hero {
  font-family: var(--font-tactical) !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7) !important;
  margin: 0 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.neon-title-compact {
  font-family: var(--font-tactical) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7) !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

/* Avatar Upload Indicator - Active on Safehouse tab only */
body.active-tab-agent #top-bar-avatar {
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
  border-color: var(--neon-cyan) !important;
}

body.active-tab-agent #top-bar-avatar::after {
  content: '📷';
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.55rem;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
  pointer-events: none;
}

.header-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gold-credit-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: #ffb000;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
}

.level-badge-compact {
  color: var(--neon-green);
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 1px 6px;
  border-radius: 10px;
}

.gold-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: #ffb000;
  padding: 3px 9px;
  border-radius: 14px;
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.2);
}

.level-badge {
  color: var(--neon-green);
  font-family: var(--font-tactical);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   LOCKED SAFEHOUSE STATUS BAR (STICKY UNDER TOP APP BAR - THIN & SPREAD OUT)
   ========================================================================== */
.safehouse-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 10, 18, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 5px 6px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 240, 255, 0.12);
}

.safehouse-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.safehouse-stat-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.safehouse-stat-pill:hover,
.safehouse-stat-pill:focus-visible {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
  outline: none;
}

.safehouse-stat-pill:active {
  transform: scale(0.97);
}

.safehouse-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
}

.safehouse-stat-head .stat-icon {
  font-size: 0.68rem;
}

.safehouse-stat-head .stat-pct {
  font-family: var(--font-tactical);
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.safehouse-stat-pill #hp-text {
  color: #f87171;
}

.safehouse-stat-pill #xp-text {
  color: var(--neon-cyan);
}

.safehouse-mini-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.safehouse-mini-track .need-fill {
  height: 100%;
  transition: width 0.35s ease;
}

.safehouse-mini-track .hp-fill {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.safehouse-mini-track .xp-fill {
  background: linear-gradient(90deg, var(--neon-cyan), #38bdf8);
}

.safehouse-mini-track .hunger-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.safehouse-mini-track .energy-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.safehouse-mini-track .rep-fill {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* Scrolling page header: SAFEHOUSE // APT 219 */
.safehouse-scroll-header {
  display: flex;
  align-items: center;
  margin: 4px 0 8px 2px;
}

.safehouse-title-compact {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* Stat info modal */
.stat-info-modal-frame {
  box-sizing: border-box;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.safehouse-section-box {
  background: rgba(8, 14, 24, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

/* 2. PINNED 3-TAB BOTTOM DOCK */
#bottom-dock.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-dock-height) !important;
  background: rgba(6, 10, 15, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(0, 255, 157, 0.2) !important;
  display: flex !important;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  padding: 4px 0 max(12px, env(safe-area-inset-bottom, 12px)) 0 !important;
  margin: 0;
  box-sizing: border-box !important;
}

.dock-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-top: 3px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
  font-family: var(--font-tactical);
}

.dock-tab .dock-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.dock-tab .dock-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dock-tab.active {
  color: var(--neon-green) !important;
  border-top: 3px solid var(--neon-green) !important;
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.12) 0%, transparent 65%);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

.dock-tab.active .dock-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--neon-green));
}

/* 3. LEAFLET TACTICAL NIGHT GRID (100% INTERACTIVE) */
#leaflet-canvas {
  background: #090d16 !important;
}

#leaflet-canvas .leaflet-tile-pane {
  filter: none !important;
}

#leaflet-canvas .leaflet-tile {
  /* High-contrast tactical night grid styling for OpenStreetMap tiles without watermarks */
  filter: brightness(0.65) invert(1) contrast(2.2) hue-rotate(195deg) saturate(0.35) brightness(0.78) !important;
}

/* Ensure marker pane layers properly above filtered tiles without overriding Leaflet projection matrix */
.leaflet-tile-pane {
  z-index: 200 !important;
}

.leaflet-marker-pane {
  z-index: 600 !important;
  will-change: transform;
}

.poi-node-marker {
  z-index: 900 !important;
  pointer-events: auto !important;
}

.landmark-marker {
  z-index: 950 !important;
  pointer-events: auto !important;
}

/* Map HUD Overlays (Non-blocking: pointer-events none) */
.map-hud-overlay-compass {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 450;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(0, 255, 157, 0.4));
}

.map-hud-overlay-radar {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 90px;
  height: 48px;
  border: 1px solid rgba(0, 255, 157, 0.35);
  background: rgba(8, 14, 20, 0.7);
  border-radius: 4px;
  pointer-events: none;
  z-index: 450;
  opacity: 0.75;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-hud-overlay-district {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 14, 20, 0.85);
  border: 1px solid rgba(0, 255, 157, 0.45);
  border-radius: 6px;
  padding: 4px 14px;
  pointer-events: none;
  z-index: 450;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.map-hud-district-title {
  font-family: var(--font-tactical);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--neon-green);
  letter-spacing: 1px;
}

.map-hud-district-hex {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #94a3b8;
}

/* High-Contrast Neon Markers */
.poi-badge-amber {
  background: rgba(255, 176, 0, 0.15) !important;
  border: 1.5px solid #ffb000 !important;
  color: #ffb000 !important;
  font-weight: 800;
  text-shadow: 0 0 8px #ffb000;
}

.poi-badge-green {
  background: rgba(0, 255, 157, 0.15) !important;
  border: 1.5px solid var(--neon-green) !important;
  color: var(--neon-green) !important;
  font-weight: 800;
  text-shadow: 0 0 8px var(--neon-green);
}

/* Tactical Map Controls (Zoom In, Zoom Out, Recenter) */
.map-ctrl-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 14, 24, 0.92);
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 0.95rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
  user-select: none;
}

.map-ctrl-pill:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 16px var(--neon-cyan);
  transform: scale(1.08);
}

.map-ctrl-pill:active {
  transform: scale(0.94);
}

/* 4. AGENT DOSSIER (SILHOUETTE & LOADOUT) */
.dossier-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.dossier-silhouette-card {
  background: rgba(4, 8, 14, 0.85);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dossier-silhouette-card img {
  max-width: 100%;
  height: auto;
  opacity: 0.85;
}

.dossier-loadout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.dossier-slot-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.2s;
}

.dossier-slot-item:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* 5. OPS TAB DISPATCHES */
.vector-contract-card {
  background: rgba(8, 14, 22, 0.88);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-left: 4px solid var(--neon-gold);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.vector-contract-title {
  font-family: var(--font-tactical);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.vector-contract-reward {
  font-family: var(--font-tactical);
  font-size: 0.72rem;
  color: var(--neon-green);
  margin-top: 2px;
}

.btn-accept-vector {
  background: rgba(0, 255, 157, 0.15) !important;
  border: 1.5px solid var(--neon-green) !important;
  color: var(--neon-green) !important;
  font-family: var(--font-tactical) !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: 1px !important;
}

.btn-accept-vector:hover {
  background: var(--neon-green) !important;
  color: #000000 !important;
  box-shadow: 0 0 15px var(--neon-green) !important;
}

/* ==========================================================================
   Tactical GPS Navigation Route Corridor & Target Beacons (Phase 13)
   ========================================================================== */

/* Animated Dash Flow for Dynamic Nav Guideline */
@keyframes navGuidelineFlow {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.nav-guideline-animated path {
  animation: navGuidelineFlow 1.2s linear infinite;
}

/* Destination Target Tactical Beacon */
@keyframes targetBeaconRingPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  70% {
    transform: scale(2.2);
    opacity: 0.15;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.nav-target-beacon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-target-beacon-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green);
  animation: targetBeaconRingPulse 1.8s ease-out infinite;
  pointer-events: none;
}

.nav-target-beacon-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 14, 24, 0.95);
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
}

.nav-target-beacon-core:hover {
  transform: scale(1.18);
  box-shadow: 0 0 22px var(--neon-green);
}

/* Origin Departure Pin */
.nav-origin-pin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-origin-pin-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 16, 8, 0.92);
  border: 2px solid var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 2;
}

/* Tactical Nav HUD Interactive States */
#nav-routing-hud {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

#nav-routing-hud:hover {
  background: rgba(0, 240, 255, 0.16) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3) !important;
}

#nav-routing-hud.nav-hud-in-range {
  background: rgba(0, 255, 157, 0.18) !important;
  border-color: var(--neon-green) !important;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.45) !important;
  animation: navHudPulse 1.4s infinite alternate;
}

@keyframes navHudPulse {
  0% {
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
  }
  100% {
    box-shadow: 0 0 24px rgba(0, 255, 157, 0.7);
  }
}

/* ==========================================================================
   Safehouse // Apartment 219 & Courier Loadout (Directive Phase 14)
   ========================================================================== */

.safehouse-header {
  border-bottom: 1px solid rgba(255, 176, 0, 0.25);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.safehouse-title {
  font-family: var(--font-tactical);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--neon-gold);
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Courier 6-Slot Loadout Grid */
.courier-loadout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.courier-slot-card {
  background: rgba(8, 14, 24, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.courier-slot-card:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.courier-slot-icon {
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.courier-slot-meta {
  flex: 1;
  min-width: 0;
}

.courier-slot-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--neon-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}

.courier-slot-item-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.courier-slot-effect {
  font-size: 0.6rem;
  color: #94a3b8;
  display: block;
}

/* Closet Disguise Silhouette Card */
.closet-card {
  background: linear-gradient(135deg, rgba(8, 14, 24, 0.95), rgba(16, 24, 40, 0.85));
  border: 1.5px solid rgba(0, 255, 157, 0.3);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.closet-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.25);
}

.closet-silhouette-wrap {
  width: 50px;
  height: 65px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 157, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.closet-silhouette-wrap img {
  max-height: 58px;
  max-width: 42px;
  object-fit: contain;
}

/* ==========================================================================
   Dispatch Board & Pinned Active Contract (Directive Phase 14)
   ========================================================================== */

.pinned-active-contract,
.active-contract-banner {
  background: linear-gradient(135deg, rgba(20, 16, 8, 0.95), rgba(30, 22, 10, 0.85));
  border: 1.5px solid var(--neon-gold);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 25px rgba(255, 176, 0, 0.22);
  position: relative;
}

.pinned-contract-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 176, 0, 0.15);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  text-transform: uppercase;
}

.tamper-seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 157, 0.15);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.tamper-seal-compromised {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.pinned-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

@media (max-width: 420px) {
  .pinned-actions-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-pinned-action {
  font-family: var(--font-tactical);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-pinned-inspect {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-pinned-inspect:hover {
  background: var(--neon-cyan);
  color: #000;
}

.btn-pinned-handler {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.btn-pinned-handler:hover {
  background: var(--neon-green);
  color: #000;
}

.btn-pinned-route {
  background: rgba(255, 176, 0, 0.15);
  border-color: var(--neon-gold);
  color: var(--neon-gold);
}

.btn-pinned-route:hover {
  background: var(--neon-gold);
  color: #000;
}

.btn-pinned-abort {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-pinned-abort:hover {
  background: #ef4444;
  color: #fff;
}

/* ==========================================================================
   DETERMINISTIC NPC INTERACTION & CRT COMMS STAGE (DIRECTIVE CHAPTER 1)
   ========================================================================== */

.npc-crt-terminal-frame {
  max-width: 440px;
  width: 100%;
  max-height: min(86dvh, 540px);
  display: flex;
  flex-direction: column;
  background: #040811;
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 25px rgba(0, 240, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  font-family: var(--font-tactical, -apple-system, BlinkMacSystemFont, sans-serif);
  box-sizing: border-box;
}

.npc-crt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  flex-shrink: 0;
}

.npc-crt-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.npc-crt-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: crtBlink 1.2s infinite ease-in-out;
}

#npc-crt-channel {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
  font-weight: bold;
}

.npc-crt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#npc-crt-signal {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--neon-green, #00ff9d);
  letter-spacing: 1px;
}

#btn-npc-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

#btn-npc-close:hover {
  color: #ef4444;
}

/* CRT Comms Viewport */
.npc-crt-viewport {
  position: relative;
  width: 100%;
  height: clamp(95px, 16vh, 130px);
  flex-shrink: 0;
  background: #010408;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

#npc-crt-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#npc-crt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.npc-crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.35) 0px,
    rgba(0, 0, 0, 0.35) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 10;
  opacity: 0.85;
}

.npc-crt-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 60%, rgba(2, 6, 12, 0.85) 100%);
  z-index: 11;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.npc-vector-hud {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(4, 10, 18, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #94a3b8;
  display: flex;
  gap: 8px;
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.npc-vector-hud span {
  font-weight: bold;
}

#vec-hud-op {
  color: var(--neon-cyan);
}

#vec-hud-inv {
  color: var(--neon-gold, #ffb000);
}

#vec-hud-reb {
  color: #ff3366;
}

/* Terminal Dialogue Feed */
.npc-dialogue-terminal {
  padding: 10px 14px;
  min-height: 60px;
  flex-shrink: 0;
  background: rgba(2, 6, 12, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, 'Courier New', monospace);
}

#npc-speaker-title {
  font-size: 0.68rem;
  color: var(--neon-cyan);
  letter-spacing: 1.2px;
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

#npc-terminal-body {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--neon-cyan);
  margin-left: 3px;
  vertical-align: middle;
  animation: crtBlink 0.9s infinite step-start;
}

/* Choice Deck */
.npc-choice-deck {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #060b13;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 220px;
}

.npc-choice-btn {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
  box-sizing: border-box;
}

.npc-choice-btn:hover:not(.locked) {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.npc-choice-btn:active:not(.locked) {
  transform: translateY(0px);
}

.npc-choice-btn-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.npc-choice-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.npc-choice-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

.badge-op {
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.badge-inv {
  background: rgba(255, 176, 0, 0.2);
  border: 1px solid var(--neon-gold, #ffb000);
  color: var(--neon-gold, #ffb000);
}

.badge-reb {
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid #ff3366;
  color: #ff3366;
}

.npc-choice-subtext {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: #94a3b8;
}

.npc-choice-btn.locked {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  background: rgba(10, 14, 22, 0.6);
}

.npc-choice-btn.locked .npc-choice-label {
  color: #64748b;
}

.npc-choice-req-warning {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 4px;
}

@keyframes crtBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   COURIER ADVANCEMENT & SPECIALIZATION MODAL STYLES (DIRECTIVE POST-WALK)
   ========================================================================== */

.btn-level-up-pulse {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.25), rgba(255, 51, 102, 0.25));
  border: 1.5px solid var(--neon-gold, #ffb000);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  animation: levelUpPulse 1.4s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.7);
  transition: all 0.15s ease;
}

.btn-level-up-pulse:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.4), rgba(255, 51, 102, 0.4));
  box-shadow: 0 0 20px rgba(255, 176, 0, 0.7);
}

@keyframes levelUpPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.4);
    border-color: #ffb000;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.7), 0 0 30px rgba(255, 176, 0, 0.5);
    border-color: #ff3366;
  }
}

.level-up-terminal-frame {
  max-width: 480px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #040811;
  border: 1.5px solid var(--neon-gold, #ffb000);
  box-shadow: 0 0 35px rgba(255, 176, 0, 0.4), inset 0 0 25px rgba(255, 176, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  font-family: var(--font-tactical, -apple-system, BlinkMacSystemFont, sans-serif);
}

.spec-card {
  background: rgba(10, 18, 30, 0.85);
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.spec-card:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.spec-card:active {
  transform: translateY(0);
}

.spec-card-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  flex-shrink: 0;
}

.spec-rank-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}

/* ============================================================================
   ONE-TAP TACTICAL DISPATCH BOTTOM DRAWER
   ============================================================================ */
.tactical-dispatch-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(6, 11, 19, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid var(--neon-cyan);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.25);
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  padding: 12px 14px 16px;
  box-sizing: border-box;
}

.tactical-dispatch-drawer.hidden {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}

.dispatch-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.dispatch-drawer-title {
  font-family: var(--font-tactical);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispatch-drawer-subtitle {
  font-size: 0.65rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.dispatch-drawer-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.dispatch-drawer-close:hover {
  color: #fff;
}

.dispatch-telemetry-card {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.dispatch-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.dispatch-telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.dispatch-telemetry-value {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
  text-align: right;
}

.dispatch-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.dispatch-telemetry-box {
  background: rgba(6, 11, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.telemetry-box-label {
  font-size: 0.56rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.telemetry-box-val {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.telemetry-box-val.val-gold {
  color: var(--neon-gold, #ffb000);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.4);
}

.telemetry-box-val.val-cyan {
  color: var(--neon-cyan, #00f0ff);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.telemetry-box-val.val-green {
  color: var(--neon-green, #39ff14);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
}

.btn-drawer-engage {
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 160, 255, 0.35));
  border: 1.5px solid var(--neon-cyan);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
}

.btn-drawer-engage:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
}

.btn-drawer-abort {
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.25), rgba(200, 30, 80, 0.35));
  border: 1.5px solid var(--neon-crimson, #ff3366);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-drawer-abort:hover {
  background: var(--neon-crimson, #ff3366);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 51, 102, 0.6);
}

/* ============================================================================
   STREET HAZARDS (Pharma-Espionage Obstacles)
   ============================================================================ */
.hazard-frame {
  max-width: 440px;
  width: 100%;
  max-height: min(86dvh, 520px);
  display: flex;
  flex-direction: column;
  background: #060b13;
  border: 1.5px solid var(--neon-crimson, #ff3366);
  box-shadow: 0 0 35px rgba(255, 51, 102, 0.4), inset 0 0 20px rgba(255, 51, 102, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  animation: hazardEntry 0.25s ease-out;
}

@keyframes hazardEntry {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.hazard-header {
  background: rgba(255, 51, 102, 0.12);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 51, 102, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.hazard-alert-banner {
  font-family: var(--font-tactical);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-crimson, #ff3366);
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hazard-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #94a3b8;
  border: 1px solid rgba(255, 51, 102, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 51, 102, 0.08);
}

.hazard-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.hazard-prompt-text {
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  background: rgba(10, 16, 26, 0.7);
  border-left: 3px solid var(--neon-crimson, #ff3366);
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
  flex-shrink: 0;
}

.hazard-choices-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.hazard-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(14, 22, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.hazard-choice-btn:hover {
  background: rgba(255, 51, 102, 0.18);
  border-color: var(--neon-crimson, #ff3366);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.3);
}

.hazard-choice-btn:active {
  transform: translateY(0);
}

.hazard-choice-tag {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   BLACK MARKET SUPPLY KIOSK & INVENTORY USABILITY
   ========================================================================== */
.blackmarket-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid rgba(255, 176, 0, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  gap: 12px;
  transition: all 0.2s ease;
}

.blackmarket-card:hover {
  border-color: rgba(255, 176, 0, 0.45);
  background: rgba(18, 26, 42, 0.9);
}

.blackmarket-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.blackmarket-card-icon {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255, 176, 0, 0.25);
  flex-shrink: 0;
}

.blackmarket-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.blackmarket-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blackmarket-card-name {
  font-weight: 700;
  font-size: 0.86rem;
  color: #fff;
  font-family: var(--font-tactical, sans-serif);
}

.blackmarket-tag {
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-consumable {
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--neon-green, #39ff14);
}

.tag-countermeasure {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan, #00f0ff);
}

.tag-countermeasure.telemetry-hex-pill {
  padding: 1px 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  color: var(--neon-cyan);
  font-size: 0.65rem;
}

/* =========================================================================
   INTELLIGENCE FOG OF WAR & NETWORK FOOTPRINT VISUALS
   ========================================================================= */

/* Radiant Comms Beacon Ring */
.footprint-beacon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.footprint-beacon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 20px var(--neon-cyan);
  animation: beaconPulse 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.footprint-beacon-core {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #060b13;
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  z-index: 2;
}

.footprint-beacon-label {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 8, 16, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  letter-spacing: 0.8px;
}

.footprint-beacon-status-online {
  color: var(--neon-green);
}

.footprint-beacon-status-degraded {
  color: var(--neon-gold, #ffb000);
}

.footprint-beacon-pulse.degraded {
  border-color: var(--neon-gold, #ffb000);
  background: rgba(255, 176, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 176, 0, 0.4);
  animation-duration: 3.5s;
}

.footprint-beacon-core.degraded {
  border-color: var(--neon-gold, #ffb000);
}

/* Macro Fog-of-War Deadzone Shroud Pill */
.macro-deadzone-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 9, 16, 0.92);
  border: 1.5px solid rgba(255, 51, 102, 0.45);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 51, 102, 0.2);
  z-index: 500;
  pointer-events: none;
  animation: deadzoneGlitch 4s infinite;
}

.macro-uplink-chip {
  cursor: pointer;
  pointer-events: auto;
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-weight: bold;
  transition: all 0.2s;
}
.macro-uplink-chip:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  70% { transform: scale(1.7); opacity: 0.1; }
  100% { transform: scale(2.0); opacity: 0; }
}

@keyframes deadzoneGlitch {
  0%, 92%, 100% { opacity: 0.95; }
  93% { opacity: 0.4; transform: translateX(-49%); }
  95% { opacity: 0.85; transform: translateX(-51%); }
}

.tag-utility {
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: var(--neon-gold, #ffb000);
}

.tag-rig_tool {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.blackmarket-card-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.3;
}

.blackmarket-buy-btn {
  background: var(--neon-gold, #ffb000);
  color: #000;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.blackmarket-buy-btn:hover:not(:disabled) {
  background: #ffc233;
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.45);
  transform: translateY(-1px);
}

.blackmarket-buy-btn:active:not(:disabled) {
  transform: translateY(0);
}

.blackmarket-buy-btn:disabled {
  background: #2a3342;
  color: #64748b;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* Backpack Grid Item with [ USE ] action button */
.backpack-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  transition: border-color 0.2s ease;
}

.backpack-item-row:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.backpack-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.backpack-item-icon {
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  flex-shrink: 0;
}

.backpack-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.backpack-item-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.backpack-item-sub {
  font-size: 0.65rem;
  color: #94a3b8;
}

.backpack-use-btn {
  background: rgba(57, 255, 20, 0.15);
  border: 1px solid var(--neon-green, #39ff14);
  color: var(--neon-green, #39ff14);
  font-weight: 800;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.backpack-use-btn:hover {
  background: var(--neon-green, #39ff14);
  color: #000;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.backpack-stash-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.backpack-stash-btn:hover {
  background: #38bdf8;
  color: #000;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.disguise-accordion-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.disguise-accordion-card.selected {
  border-color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
}
.disguise-accordion-card.expanded {
  border-color: var(--neon-cyan);
}

/* ==========================================================================
   COURIER PROTOCOL: KRAKEN DECRYPTION, SLEEP ENGINE & UNIFIED TASK LEDGER
   ========================================================================== */

/* Safehouse Sleep & 4x Clock Card */
.safehouse-sleep-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sleep-debt-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-safehouse-sleep {
  background: linear-gradient(90deg, #1e293b, #334155);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.btn-safehouse-sleep:hover {
  background: #38bdf8;
  color: #040812;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* Safehouse Operations Board */
.operations-board-card {
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.95), rgba(15, 23, 42, 0.9));
  border: 1.5px solid var(--neon-cyan, #00f0ff);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.btn-kraken-decrypt {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.25));
  border: 1.5px solid var(--neon-cyan, #00f0ff);
  color: #fff;
  font-family: var(--font-tactical, sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-kraken-decrypt:hover {
  background: var(--neon-cyan, #00f0ff);
  color: #040812;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

/* Kraken Decryption Matrix Modal */
.kraken-matrix-frame {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}

.kraken-cell {
  aspect-ratio: 1;
  background: rgba(10, 16, 32, 0.9);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.kraken-cell:hover {
  border-color: var(--neon-cyan, #00f0ff);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.kraken-cell.active-flip {
  border-color: var(--neon-gold, #ffb000);
  background: rgba(255, 176, 0, 0.15);
  color: var(--neon-gold, #ffb000);
  box-shadow: 0 0 16px rgba(255, 176, 0, 0.4);
}

.kraken-cell.matched {
  border-color: var(--neon-green, #39ff14);
  background: rgba(57, 255, 20, 0.18);
  color: var(--neon-green, #39ff14);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
  pointer-events: none;
}

/* Unified Task Ledger */
.unified-task-ledger {
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}

.task-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.task-item-row.completed {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.06);
}

.task-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  flex-shrink: 0;
}

.task-item-row.completed .task-checkbox {
  border-color: var(--neon-green, #39ff14);
  background: var(--neon-green, #39ff14);
  color: #000;
  font-weight: 900;
}

.task-meta-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.task-item-row.completed .task-meta-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.task-meta-desc {
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

/* Sleep Fullscreen Transition */
#sleep-screen-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

#sleep-screen-overlay.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}





/* =============================================================================
   DISPATCH LOOP — Safe Street Protocol CSS (v112)
   Ticket cards, countdown rings, presence badges, chalk marks, speed meter
   ============================================================================= */

/* ---- Dispatch Ticket Cards ---- */
.dispatch-ticket-card {
  background: rgba(2, 6, 12, 0.85);
  border: 1px solid rgba(0, 245, 160, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dispatch-ticket-card:hover {
  border-color: rgba(0, 245, 160, 0.55);
  background: rgba(0, 245, 160, 0.04);
}
.dispatch-ticket-card.claimed {
  border-color: rgba(0, 245, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.06), rgba(2, 6, 12, 0.9));
}
.dispatch-tier-1 { border-left: 3px solid #00f5a0; }
.dispatch-tier-2 { border-left: 3px solid #FFB000; }
.dispatch-tier-3 { border-left: 3px solid #ff3366; }

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 5px;
}
.ticket-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}
.ticket-ttl {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #64748b;
  white-space: nowrap;
}
.ticket-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}
.dispatch-faction-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  background: rgba(255, 176, 0, 0.15);
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: #FFB000;
  padding: 1px 5px;
  border-radius: 3px;
}
.dispatch-parallel-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 3px;
}
.ticket-tier-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
  padding: 1px 5px;
  border-radius: 3px;
}
.ticket-active-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: #ff3366;
  padding: 1px 5px;
  border-radius: 3px;
}
.ticket-rewards {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.reward-cr {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #00f5a0;
}
.reward-xp {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: #FFB000;
}
.ticket-action { display: flex; gap: 8px; align-items: center; }

/* Claim / Complete buttons */
.dispatch-claim-btn,
.dispatch-complete-btn {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #00f5a0;
  background: rgba(0, 245, 160, 0.12);
  color: #00f5a0;
  transition: background 0.15s, box-shadow 0.15s;
}
.dispatch-claim-btn:hover:not(:disabled) {
  background: rgba(0, 245, 160, 0.22);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.4);
}
.dispatch-claim-btn.btn-locked,
.dispatch-claim-btn:disabled {
  border-color: rgba(255, 51, 102, 0.4);
  color: #ff3366;
  background: rgba(255, 51, 102, 0.08);
  cursor: not-allowed;
}
.dispatch-complete-btn {
  border-color: #00f5ff;
  background: rgba(0, 245, 255, 0.12);
  color: #00f5ff;
}
.dispatch-complete-btn:hover {
  background: rgba(0, 245, 255, 0.22);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

/* ---- Countdown Ring ---- */
.dispatch-claimed-envelope {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticket-countdown-ring {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.countdown-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.countdown-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  color: #00f5a0;
  white-space: nowrap;
}

/* ---- Ticket Claimed Badge ---- */
.ticket-claimed-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  background: rgba(0, 245, 160, 0.15);
  border: 1px solid rgba(0, 245, 160, 0.4);
  color: #00f5a0;
  padding: 2px 6px;
  border-radius: 3px;
  animation: claimedPulse 1.5s infinite;
}
@keyframes claimedPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ---- District Presence Indicators ---- */
.dispatch-presence-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.presence-quiet {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #64748b;
}
.presence-active {
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid rgba(0, 245, 160, 0.4);
  color: #00f5a0;
  animation: presencePulse 2s infinite;
}
@keyframes presencePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 245, 160, 0); }
  50%       { box-shadow: 0 0 10px rgba(0, 245, 160, 0.3); }
}

/* ---- Speed Cadence Meter ---- */
.dispatch-speed-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(100, 116, 139, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: default;
}
.speed-pedestrian {
  border-color: rgba(100, 116, 139, 0.35);
  color: #94a3b8;
  background: rgba(100, 116, 139, 0.1);
}
.speed-cadence {
  border-color: rgba(0, 245, 160, 0.5);
  color: #00f5a0;
  background: rgba(0, 245, 160, 0.08);
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.2);
}
.speed-vehicular {
  border-color: rgba(255, 51, 102, 0.5);
  color: #ff3366;
  background: rgba(255, 51, 102, 0.08);
  animation: vehicularFlash 0.8s infinite;
}
@keyframes vehicularFlash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.speed-cadence-meter {
  display: flex;
  gap: 4px;
  flex: 1;
}
.cadence-bracket {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bracket-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.48rem;
  color: #64748b;
  letter-spacing: 0.04em;
}
.bracket-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
}
.b-pedestrian { background: rgba(100, 116, 139, 0.4); }
.b-cadence    { background: rgba(0, 245, 160, 0.5); }
.b-vehicular  { background: rgba(255, 51, 102, 0.5); }

/* ---- Vehicular Lockout Warning ---- */
.vehicular-lockout-warning {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.6);
  color: #ff3366;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
  animation: vehicularFlash 0.8s infinite;
}

/* ---- Chalk Mark Tags ---- */
.chalk-marks-section {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(100, 116, 139, 0.2);
}
.chalk-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  color: #64748b;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}
.chalk-mark-tag {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.65rem;
  padding: 5px 8px;
  border-radius: 5px;
  margin-bottom: 4px;
  border-left: 3px solid transparent;
}
.chalk-info    { background: rgba(56, 189, 248, 0.08);  border-left-color: #38bdf8; }
.chalk-warning { background: rgba(255, 176, 0, 0.08);   border-left-color: #FFB000; }
.chalk-friendly{ background: rgba(0, 245, 160, 0.08);   border-left-color: #00f5a0; }
.chalk-threat  { background: rgba(255, 51, 102, 0.1);   border-left-color: #ff3366; }
.chalk-icon   { font-size: 0.75rem; flex-shrink: 0; }
.chalk-message { color: #f8fafc; line-height: 1.4; flex: 1; }
.chalk-faction {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #64748b;
  white-space: nowrap;
}

/* ---- Consolation Buff Banner ---- */
.dispatch-notification-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10000;
  max-width: 92vw;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.dispatch-notification-banner.visible {
  transform: translateX(-50%) translateY(0);
}
.banner-success {
  background: rgba(0, 245, 160, 0.15);
  border: 1px solid rgba(0, 245, 160, 0.5);
  color: #00f5a0;
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.2);
}
.banner-consolation {
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.45);
  color: #FFB000;
  box-shadow: 0 4px 20px rgba(255, 176, 0, 0.2);
}
.banner-claim {
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.4);
  color: #00f5ff;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.2);
}
.banner-error {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.45);
  color: #ff3366;
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.2);
}

/* ---- Relay Pipeline Cards ---- */
.relay-pipeline-card {
  background: rgba(2, 6, 12, 0.8);
  border: 1px solid rgba(255, 176, 0, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.relay-id {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #FFB000;
}
.relay-progress {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.relay-progress-bar {
  height: 3px;
  background: rgba(255, 176, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
.relay-progress-fill {
  height: 100%;
  background: #FFB000;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.relay-escrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: #64748b;
}
.relay-empty {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #64748b;
  text-align: center;
  padding: 10px 0;
}

/* ---- Dispatch Empty State ---- */
.dispatch-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 10px;
  color: #64748b;
}
.dispatch-empty-icon { font-size: 1.5rem; }
.dispatch-empty-state p {
  font-size: 0.65rem;
  font-family: 'Space Mono', monospace;
  text-align: center;
  line-height: 1.6;
  max-width: 200px;
}

/* =========================================================================
   FACTION CAMPAIGN MISSION DECK & PROGRESSION ENGINE
   ========================================================================= */
.campaign-deck-card {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.campaign-task-row {
  position: relative;
  user-select: none;
}

.campaign-task-row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
}

.campaign-task-row.task-done {
  opacity: 0.75;
}

.campaign-task-row.task-locked {
  opacity: 0.45;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

@keyframes waveAnim {
  0%, 100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

.btn-task-briefing:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.btn-task-briefing:active {
  transform: translateY(1px);
}

/* =============================================================================
   PHASE 3 - MISSION DIRECTIVES & PROCEDURAL COURIER MANIFESTS
   Interactive task cards on Dispatch Board (Items 9 & 12)
   ============================================================================= */

/* ---- Mission Directives Container ---- */
.mission-directives-card {
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.92), rgba(2, 6, 12, 0.96));
  border: 1px solid rgba(255, 176, 0, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(255, 176, 0, 0.08);
}

.mission-directives-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 176, 0, 0.2);
}

.mission-directives-title {
  font-family: var(--font-tactical, 'Chakra Petch', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFB000;
  letter-spacing: 1px;
}

.mission-progress-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--neon-gold, #FFB000);
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---- Mission Directive Card ---- */
.mission-directive-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mission-directive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
  transition: background 0.25s ease;
}

.mission-directive-card.mission-active {
  border-color: rgba(0, 240, 255, 0.25);
}
.mission-directive-card.mission-active::before {
  background: var(--neon-cyan, #00f0ff);
}
.mission-directive-card.mission-active:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.mission-directive-card.mission-in-progress {
  border-color: rgba(255, 176, 0, 0.35);
  background: rgba(255, 176, 0, 0.04);
}
.mission-directive-card.mission-in-progress::before {
  background: #FFB000;
  animation: inProgressPulse 1.5s ease-in-out infinite;
}

.mission-directive-card.mission-completed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
  opacity: 0.75;
}
.mission-directive-card.mission-completed::before {
  background: #10b981;
}

@keyframes inProgressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Card Layout ---- */
.mission-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.mission-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mission-type-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mission-card-text {
  flex: 1;
  min-width: 0;
}

.mission-card-title {
  font-family: var(--font-tactical, 'Chakra Petch', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  margin-bottom: 2px;
}

.mission-completed .mission-card-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.mission-card-desc {
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ---- Status Badges ---- */
.mission-status-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.badge-in-progress {
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid rgba(255, 176, 0, 0.4);
  color: #FFB000;
  animation: claimedPulse 1.5s infinite;
}

.badge-completed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* ---- Card Footer ---- */
.mission-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mission-rewards-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mission-reward-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #00f5a0;
}

.mission-reward-pill:nth-child(2) {
  color: #FFB000;
}

.mission-reward-pill:nth-child(3) {
  color: #38bdf8;
}

.mission-actions-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ---- Mission Action Buttons ---- */
.btn-mission-lock-route,
.btn-mission-engage,
.btn-mission-claim-reward {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mission-lock-route {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
.btn-mission-lock-route:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-mission-engage {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}
.btn-mission-engage:hover {
  background: rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.35);
  transform: translateY(-1px);
}

.btn-mission-claim-reward {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.25));
  color: #10b981;
  animation: rewardPulse 1.8s ease-in-out infinite;
}
.btn-mission-claim-reward:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.45));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

@keyframes rewardPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.3); }
}

.mission-status-resolved {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
}

/* ---- Procedural Manifest Cards (Item 12) ---- */
.procedural-manifest {
  position: relative;
}
.procedural-manifest:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.manifest-category-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.manifest-desc-row {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 6px;
  padding: 0 2px;
}

.manifest-countdown {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.manifest-countdown-urgent {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.5);
  color: #ff3366;
  animation: vehicularFlash 0.8s infinite;
}

.reward-escrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
}

.procedural-claim-nav-btn {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.procedural-claim-nav-btn:hover {
  filter: brightness(1.3);
  box-shadow: 0 0 12px currentColor;
  transform: translateY(-1px);
}
.procedural-claim-nav-btn:active {
  transform: translateY(1px);
}


/* =========================================================================
   RESPONSIVE TOP BAR LAYOUT & TYPOGRAPHY FIX (ZERO CROWDING / ZERO OVERLAP)
   ========================================================================= */
header#top-app-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  gap: 8px !important;
}

.top-bar-avatar-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  gap: 1px !important;
  cursor: pointer;
}

.top-bar-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--neon-green) !important;
  overflow: hidden !important;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.4) !important;
}

.level-badge-compact {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.50rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 0 4px !important;
  line-height: 1.1 !important;
  border: 1px solid var(--neon-green) !important;
  border-radius: 3px !important;
  color: var(--neon-green) !important;
  background: rgba(0, 255, 157, 0.12) !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-shadow: 0 0 4px rgba(0, 255, 157, 0.2) !important;
}

.gold-credit-badge-compact {
  flex-shrink: 0 !important;
}

.header-right-actions {
  flex-shrink: 0 !important;
}

@media (max-width: 480px) {
  header#top-app-bar {
    padding: 0 8px !important;
    gap: 8px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
  .top-bar-branding {
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
  }
  .header-identity-stack {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .neon-title-hero {
    display: none !important;
  }
  .gold-credit-badge-compact {
    font-size: 0.65rem !important;
    padding: 2px 7px !important;
    letter-spacing: 0.15px !important;
    flex-shrink: 0 !important;
  }
  .btn-footwork-hub {
    font-size: 0.62rem !important;
    padding: 3px 8px !important;
    letter-spacing: 0.06em !important;
    flex-shrink: 0 !important;
  }
  .btn-settings-widget {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 360px) {
  header#top-app-bar {
    padding: 0 4px !important;
    gap: 4px !important;
  }
  .top-bar-branding {
    gap: 5px !important;
  }
}

