/* ============================================================
   Onboarding Wizard (Faz O, 2026-05-26)
   ============================================================ */
.onb-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 6, 6, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: onb-fade 220ms ease;
}
@keyframes onb-fade { from { opacity: 0; } to { opacity: 1; } }
.onb-modal {
  background: linear-gradient(180deg, #1A0E0C 0%, #14090A 100%);
  border: 1px solid rgba(47, 92, 168, 0.24);
  border-radius: 18px;
  width: min(560px, 94vw);
  max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 60px rgba(47, 92, 168,0.15);
  animation: onb-rise 320ms cubic-bezier(.18,.85,.3,1);
}
@keyframes onb-rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.onb-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.10);
  background: linear-gradient(180deg, rgba(47, 92, 168, 0.05) 0%, transparent 100%);
}
.onb-progress-bar {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.onb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 420ms cubic-bezier(.18,.85,.3,1);
  box-shadow: 0 0 8px rgba(47, 92, 168,0.5);
}
.onb-step-counter {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.06em;
  flex-shrink: 0;
}
.onb-close {
  background: transparent; border: none;
  color: rgba(255,255,255,0.55); font-size: 22px; cursor: pointer;
  padding: 0 6px; border-radius: 6px;
  transition: color 140ms, background 140ms;
}
.onb-close:hover { color: var(--accent); background: rgba(47, 92, 168,0.08); }

.onb-body {
  flex: 1; overflow-y: auto;
  padding: 24px 28px;
}
.onb-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: -0.01em; }
.onb-subtitle { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.5; margin: 0 0 18px; }
.onb-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 16px 0 8px; }
.onb-hint { font-size: 11px; color: rgba(255,255,255,0.42); font-style: italic; margin: 10px 0 0; }
.onb-tip {
  background: rgba(47, 92, 168, 0.06);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px; color: rgba(255,255,255,0.82);
  margin: 12px 0;
}
.onb-tip strong { color: var(--accent); }

.onb-style-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-bottom: 8px;
}
.onb-style-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(47, 92, 168,0.14);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.onb-style-card:hover { background: rgba(47, 92, 168,0.08); border-color: rgba(47, 92, 168,0.36); transform: translateY(-1px); }
.onb-style-card.selected {
  background: rgba(47, 92, 168,0.18);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(47, 92, 168,0.20);
}
.onb-style-name { font-size: 14px; font-weight: 700; color: #fff; }
.onb-style-vibe { font-size: 10.5px; color: rgba(255,255,255,0.50); margin-top: 2px; font-style: italic; }

.onb-snippet {
  position: relative; margin: 12px 0;
}
.onb-snippet pre {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(47, 92, 168,0.16);
  border-radius: 8px;
  padding: 12px 12px 12px 14px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 11px; color: var(--accent);
  white-space: pre-wrap; word-wrap: break-word;
  margin: 0; padding-right: 80px;
}
.onb-snippet-copy {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 5px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.onb-snippet-copy:hover { background: var(--accent-hover); }
.onb-checklist { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.onb-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,0.82); cursor: pointer; }
.onb-check input[type=checkbox] { accent-color: var(--accent); }

.onb-textarea {
  width: 100%;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(47, 92, 168,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff; font-family: inherit; font-size: 13px;
  outline: none; resize: vertical; line-height: 1.5;
}
.onb-textarea:focus { border-color: var(--accent); }
.onb-result {
  margin-top: 10px; min-height: 20px;
}
.onb-loading { font-size: 12px; color: rgba(255,255,255,0.55); font-style: italic; }
.onb-error { font-size: 12px; color: var(--accent); }
.onb-result-reply {
  background: rgba(47, 92, 168,0.08);
  border-left: 2px solid var(--accent);
  padding: 10px 12px; border-radius: 6px;
  font-size: 12.5px; color: rgba(255,255,255,0.88);
  margin-bottom: 6px;
}
.onb-result-notes { font-size: 11px; color: var(--accent); font-weight: 600; }

.onb-done { text-align: center; padding: 12px 0; }
.onb-confetti { font-size: 64px; margin-bottom: 12px; animation: onb-bounce 1.4s ease-in-out infinite; }
@keyframes onb-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.onb-done .onb-title { font-size: 24px; }
.onb-done-list {
  list-style: none; padding: 0; margin: 14px 0;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  font-size: 12.5px; color: rgba(255,255,255,0.78);
}
.onb-done-list li {
  padding: 8px 10px; background: rgba(47, 92, 168,0.04);
  border-radius: 6px;
}

.onb-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid rgba(47, 92, 168, 0.10);
  background: linear-gradient(180deg, transparent 0%, rgba(47, 92, 168, 0.03) 100%);
}
.onb-footer-right { display: flex; gap: 8px; align-items: center; }
.onb-btn {
  padding: 8px 16px; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; border: none;
  transition: transform 160ms, background 160ms, box-shadow 160ms;
}
.onb-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 92, 168,0.30);
}
.onb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 92, 168,0.46); }
.onb-btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
}
.onb-btn-secondary:hover { background: rgba(47, 92, 168,0.10); border-color: rgba(47, 92, 168,0.36); color: #fff; }
.onb-btn-skip {
  background: transparent;
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
}
.onb-btn-skip:hover { color: var(--accent); }
.onb-btn-block { width: 100%; padding: 12px; }

@media (max-width: 640px) {
  .onb-modal { width: 96vw; max-height: 92vh; }
  .onb-body { padding: 18px 18px; }
  .onb-title { font-size: 18px; }
  .onb-style-grid { grid-template-columns: 1fr; }
}

/* Faz A — voice CTA listening state inside the wizard (step 4) */
.onb-btn-secondary.listening {
  background: rgba(47, 92, 168, 0.18);
  border-color: var(--accent);
  color: #fff;
  animation: onb-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes onb-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 92, 168, 0.5), 0 0 14px rgba(47, 92, 168, 0.3); }
  50%      { box-shadow: 0 0 0 10px rgba(47, 92, 168, 0.0), 0 0 20px rgba(47, 92, 168, 0.5); }
}
