/* Visual pipeline, activity, guide components */

.pipeline-flow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 1rem 0;
}

.pipeline-step-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
}

.pipeline-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pipeline-step.pipeline-active {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
}

.pipeline-icon {
  font-size: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.pipeline-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pipeline-text strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.pipeline-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-tech);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-connector {
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--neon-cyan));
  opacity: 0.5;
  flex-shrink: 0;
}

.pipeline-compact .pipeline-step {
  padding: 0.5rem 0.65rem;
}

.fleet-pipeline-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
  gap: 0.25rem;
}

.fleet-pipeline-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.fleet-pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4rem;
}

.fleet-pipeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.fleet-pipeline-node.ok .fleet-pipeline-dot {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.fleet-pipeline-node.pending .fleet-pipeline-dot {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
}

.fleet-pipeline-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.fleet-pipeline-node.ok .fleet-pipeline-label {
  color: var(--neon-green);
}

.fleet-pipeline-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0.25rem;
  margin-bottom: 1.25rem;
}

.fleet-pipeline-line.lit {
  background: linear-gradient(90deg, var(--neon-green), rgba(74, 222, 128, 0.3));
}

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

.activity-pulse {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.activity-blip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 3rem;
}

.activity-blip-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.activity-blip.ok .activity-blip-core {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.activity-blip.bad .activity-blip-core {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

.activity-blip-label {
  font-size: 0.55rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.activity-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-card h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.compare-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.roadmap-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.roadmap-card h4 {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.9rem;
}

.roadmap-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.roadmap-priority {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.roadmap-high .roadmap-priority {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.roadmap-medium .roadmap-priority {
  color: var(--neon-amber);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.roadmap-low .roadmap-priority {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 255, 0.35);
}

.guide-step-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}

.guide-step-num {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  border: 1px solid var(--brass);
  color: var(--neon-amber);
  background: rgba(201, 162, 39, 0.1);
}

.guide-step-body h4 {
  margin: 0 0 0.35rem;
}

.guide-step-body p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.guide-tips {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--neon-cyan);
}

.trouble-card {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--neon-amber);
  background: rgba(251, 191, 36, 0.06);
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.5rem;
}

.trouble-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--neon-amber);
}

.trouble-card span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.system-status-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 1.5rem;
  background: rgba(8, 6, 4, 0.85);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.75rem;
  font-family: var(--font-tech);
  letter-spacing: 0.04em;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.status-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.status-pill.ok .status-pill-dot {
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

.status-pill.warn .status-pill-dot {
  background: var(--neon-amber);
}

.status-pill.bad .status-pill-dot {
  background: #f87171;
}

.status-pill.ok {
  color: var(--neon-green);
}

@media (max-width: 640px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Guide page additions ─────────────────────────────────────────────────── */

.guide-step-sub {
  font-size: 0.82em;
  font-weight: 400;
  color: var(--text-secondary);
}

.guide-step-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.15rem;
}

/* Code block with copy button */
.guide-code-block {
  position: relative;
  margin-top: 0.6rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.22);
  overflow: hidden;
}

.guide-code-pre {
  margin: 0;
  padding: 0.65rem 3.5rem 0.65rem 0.9rem;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #b8e0d0;
  white-space: pre-wrap;
  word-break: break-all;
}

.guide-code-copy {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-size: 0.65rem;
  font-family: var(--font-tech, monospace);
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 245, 255, 0.09);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 3px;
  color: var(--neon-cyan, #0ff);
  cursor: pointer;
  transition: background 0.15s;
}

.guide-code-copy:hover {
  background: rgba(0, 245, 255, 0.2);
}

/* Network topology ASCII diagram */
.guide-topology {
  margin: 0.5rem 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.18);
  overflow-x: auto;
}

.guide-topology-pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #c9a227;
  white-space: pre;
}

/* Dropper one-liner quick-ref grid */
.guide-dropper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.guide-dropper-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.guide-dropper-os {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-amber, #ffc060);
}

/* Inline code links */
.guide-link {
  color: var(--neon-cyan, #0ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-link:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .guide-dropper-grid {
    grid-template-columns: 1fr;
  }
  .guide-topology-pre {
    font-size: 0.6rem;
  }
}
