/* First-run coach — plain steps, no ring */
.nexus-coach-root {
  position: fixed;
  z-index: 120;
  inset: auto auto 1rem 1rem;
  width: min(400px, calc(100vw - 2rem));
  font-family: Rajdhani, system-ui, sans-serif;
  color: #e8eefc;
  pointer-events: none;
}

.nexus-coach-root * {
  box-sizing: border-box;
}

.nexus-coach-fab,
.nexus-coach-panel,
.nexus-coach-panel button,
.nexus-coach-panel a {
  pointer-events: auto;
}

.nexus-coach-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  padding: 0.65rem 1rem;
  border: 1px solid color-mix(in srgb, var(--nexus-gateway, #3b82f6) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #05070d 82%, var(--nexus-gateway, #3b82f6));
  color: #f4f7ff;
  font: 700 0.85rem/1 Rajdhani, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 24px color-mix(in srgb, var(--nexus-gateway, #3b82f6) 28%, transparent);
}

.nexus-coach-fab[hidden],
.nexus-coach-panel[hidden] {
  display: none !important;
}

.nexus-coach-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--nexus-vault, #22d3ee) 35%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(165deg, color-mix(in srgb, #0a1430 88%, var(--nexus-gateway, #3b82f6)), #05070d 70%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 color-mix(in srgb, var(--nexus-vault, #22d3ee) 18%, transparent);
}

.nexus-coach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.nexus-coach-kicker {
  margin: 0;
  font: 700 0.7rem/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nexus-vault, #22d3ee);
}

.nexus-coach-title {
  margin: 0.35rem 0 0;
  font: 800 1.35rem/1.15 Rajdhani, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nexus-coach-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  border-radius: 999px;
  background: transparent;
  color: #c9d4ef;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.nexus-coach-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nexus-coach-step {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  background: color-mix(in srgb, #05070d 55%, transparent);
}

.nexus-coach-step-num {
  margin: 0 0 0.25rem;
  font: 700 0.65rem/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nexus-vault, #22d3ee);
}

.nexus-coach-step h3 {
  margin: 0 0 0.35rem;
  font: 800 0.95rem/1.2 Rajdhani, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nexus-coach-step p {
  margin: 0;
  font: 500 0.92rem/1.45 Rajdhani, system-ui, sans-serif;
  color: #c5d0ea;
}

.nexus-coach-step a {
  color: #93c5fd;
}

.nexus-coach-step code {
  font: 600 0.8em/1.3 "JetBrains Mono", ui-monospace, monospace;
  color: #e8eefc;
}

.nexus-coach-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.nexus-coach-actions button {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  background: color-mix(in srgb, #05070d 50%, transparent);
  color: #e8eefc;
  font: 700 0.78rem/1.2 Rajdhani, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 0.55rem;
  cursor: pointer;
}

.nexus-coach-actions button.primary {
  border-color: color-mix(in srgb, var(--nexus-gateway, #3b82f6) 60%, transparent);
  background: color-mix(in srgb, var(--nexus-gateway, #3b82f6) 28%, #05070d);
}

@media (max-width: 720px) {
  .nexus-coach-root {
    inset: auto 0.65rem calc(5rem + 0.75rem) 0.65rem;
    width: auto;
  }
}

@media (max-width: 1023px) and (min-width: 640px) {
  .nexus-coach-root {
    bottom: calc(6rem + 0.75rem);
  }
}
