/* Wizard overlay styles — shared between landing page and dashboard */
.wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,6,8,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-overlay.hidden {
  display: none;
}

.wizard-container {
  width: 100%;
  max-width: 640px;
  height: 80vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  background: #0c0c10;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
}

.wizard-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1;
}

.wizard-close:hover { color: #fff; }

.wizard-progress {
  display: flex;
  gap: 0;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wizard-step {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.wizard-step.active {
  color: #64748b;
  border-bottom-color: rgba(91,141,239,0.3);
}

.wizard-step.current {
  color: #5b8def;
  border-bottom-color: #5b8def;
}

.wizard-chat {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.wizard-msg-assistant {
  background: rgba(91,141,239,0.1);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.wizard-msg-user {
  background: #5b8def;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.wizard-typing {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
}

.wizard-typing .dot {
  width: 6px;
  height: 6px;
  background: #5b8def;
  border-radius: 50%;
  animation: wizDot 1.2s infinite;
}

.wizard-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.wizard-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wizDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.wizard-input-row {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.wizard-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 0.88rem;
  outline: none;
}

.wizard-input:focus {
  border-color: rgba(91,141,239,0.4);
}

.wizard-send {
  background: #5b8def;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.wizard-send:hover { background: #4a7de0; }
.wizard-send:disabled { opacity: 0.5; cursor: default; }

.wizard-completion {
  text-align: center;
  padding: 32px 0;
}

.wizard-cert {
  background: rgba(91,141,239,0.06);
  border: 1px solid rgba(91,141,239,0.2);
  border-radius: 16px;
  padding: 32px;
}

.wizard-cert h3 {
  color: #5b8def;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.wizard-cert-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.wizard-cert p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.wizard-cert-cta {
  display: inline-block;
  background: #5b8def;
  color: #fff;
  padding: 12px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.wizard-cert-cta:hover { background: #4a7de0; }

/* Wizard template selection cards */
.wizard-template-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.wizard-tpl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(91,141,239,0.08);
  border: 1px solid rgba(91,141,239,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-width: 120px;
  text-align: center;
}

.wizard-tpl-card:hover {
  border-color: #5b8def;
  background: rgba(91,141,239,0.15);
}

.wizard-tpl-icon {
  font-size: 1.5rem;
}

.wizard-tpl-card strong {
  color: #e2e8f0;
  font-size: 0.8rem;
}

.wizard-tpl-metric {
  color: #5b8def;
  font-size: 0.68rem;
  font-weight: 600;
}

/* Wizard skip button */
.wizard-skip-btn {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 8px;
}

.wizard-skip-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
}

@media (max-width: 600px) {
  .wizard-container {
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
}
