/* Magic Bots Lab — onboarding & stake coach (shared) */

.guide-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.guide-steps li {
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  font-size: 9px;
  line-height: 1.3;
  color: rgba(203, 213, 225, 0.92);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-steps li strong {
  display: inline;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #24d970;
  margin-right: 4px;
  font-weight: 700;
}

.guide-steps li.is-active {
  border-color: rgba(0, 210, 255, 0.45);
  background: rgba(0, 210, 255, 0.08);
}

.guide-steps li.is-done {
  border-color: rgba(36, 217, 112, 0.35);
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.guide-overlay.show {
  display: flex;
}

.guide-modal {
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171b24;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 22px;
  position: relative;
}

.guide-modal__kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00d2ff;
}

.guide-modal h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #f5f7ff;
  line-height: 1.25;
}

.guide-modal p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #98a2bd;
}

.guide-modal p:last-of-type {
  margin-bottom: 0;
}

.guide-modal__note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
  font-size: 12px;
  color: rgba(254, 243, 199, 0.95);
  line-height: 1.45;
}

.guide-modal__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-btn {
  flex: 1;
  min-width: 120px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f7ff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guide-btn--primary {
  border-color: rgba(0, 210, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(0, 210, 255, 0.1));
  color: #00d2ff;
}

.guide-btn--ghost {
  background: transparent;
}

.guide-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #98a2bd;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.guide-dismiss:hover {
  color: #f5f7ff;
  background: rgba(255, 255, 255, 0.1);
}

.bot-card--recommended {
  outline: 2px solid rgba(0, 210, 255, 0.45);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.15), 0 12px 32px rgba(0, 210, 255, 0.12);
}

.bot-badge--recommended-start {
  border-color: rgba(0, 210, 255, 0.45);
  background: rgba(0, 210, 255, 0.12);
  color: #7dd3fc;
}

.stake-coach {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(36, 217, 112, 0.22);
  background: rgba(36, 217, 112, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stake-coach--compact {
  padding: 8px 10px;
  gap: 6px;
}

.stake-coach[hidden] {
  display: none !important;
}

.stake-coach__tip {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(187, 247, 208, 0.92);
}

.stake-coach__apply {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 210, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.16), rgba(0, 210, 255, 0.08));
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.stake-coach__apply[hidden] {
  display: none !important;
}

.low-balance-recommend-stake {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 210, 255, 0.22);
  background: rgba(0, 210, 255, 0.06);
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.low-balance-recommend-stake strong,
.low-balance-recommend-stake .stake-amt {
  color: #00d2ff;
  font-weight: 800;
}

@media (max-width: 620px) {
  .guide-modal {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .guide-modal h2 {
    font-size: 16px;
    padding-right: 28px;
  }

  .guide-steps {
    flex-wrap: wrap;
  }

  .guide-steps li {
    flex: 1 1 calc(33.333% - 6px);
    font-size: 8px;
    padding: 4px 5px;
  }

  .guide-steps li strong {
    font-size: 8px;
    margin-right: 3px;
  }

  .guide-modal__actions {
    flex-direction: column;
  }

  .guide-btn {
    width: 100%;
    min-width: 0;
  }
}
