/* ========================================
   xHireAI — Signup Wizard Styles
   ======================================== */

/* ─── Wizard Layout ──────────────────── */
.wizard-step {
    display: none;
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 80px);
}
.wizard-step.active { display: block; }

.niche-section-label {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
}

.wizard-container { max-width: 960px; margin: 0 auto; }

.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}
.wizard-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.wizard-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.wizard-btn-next, .wizard-btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
}
.wizard-btn-next:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--shadow-accent); }
.wizard-btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.wizard-btn-next svg { color: var(--bg-base); }
.wizard-btn-launch { font-size: 1.05rem; padding: 1rem 2.2rem; }

.wizard-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.wizard-btn-back:hover { border-color: var(--border-hover); color: var(--text-primary); }
.wizard-btn-back svg { color: var(--text-secondary); }


/* ─── Progress Bar ──────────────────── */
.signup-progress {
    position: sticky;
    top: 72px;
    z-index: 90;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.progress-track {
    width: 100%;
    height: 4px;
    background: var(--bg-surface-elevated);
    border-radius: 100px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 100px;
    transition: width 0.5s var(--ease-out-expo);
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 640px;
    margin: 0 auto;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: default;
    transition: color 0.3s;
}
.progress-step.active { color: var(--accent); }
.progress-step.done { color: var(--text-secondary); }
.progress-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    transition: all 0.3s;
}
.progress-step.active .progress-step-num {
    background: var(--accent);
    color: var(--bg-base);
    border-color: var(--accent);
}
.progress-step.done .progress-step-num {
    background: var(--bg-surface-elevated);
    border-color: var(--accent);
    color: var(--accent);
}


/* ─── Step 1: Niche Picker ──────────── */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.niche-card {
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    text-align: center;
    position: relative;
}
.niche-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}
.niche-card.selected {
    border-color: var(--accent);
    background: var(--accent-muted);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px var(--shadow-accent);
}
.niche-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.niche-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.niche-card p {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}
.niche-card .niche-flagship {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--bg-base);
    font-weight: 700;
}

.niche-recommendation {
    margin-bottom: 2rem;
    animation: slideUp 0.4s var(--ease-out-expo);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.niche-rec-inner {
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    background: var(--accent-muted);
}
.niche-rec-inner h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.niche-rec-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.niche-rec-agent {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 100px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid var(--border-accent);
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
}
.niche-rec-note {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}


/* ─── Step 2: Stack Builder ─────────── */
.stack-builder {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.stack-agents {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.stack-agent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.stack-agent-item:hover { border-color: var(--border-accent); }
.stack-agent-item.checked {
    border-color: var(--accent);
    background: var(--accent-muted);
}
.stack-agent-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.stack-agent-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.stack-agent-item.checked .stack-agent-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}
.stack-agent-checkbox svg {
    width: 12px;
    height: 12px;
    color: var(--bg-base);
    opacity: 0;
    transition: opacity 0.2s;
}
.stack-agent-item.checked .stack-agent-checkbox svg { opacity: 1; }
.stack-agent-icon { font-size: 1.3rem; flex-shrink: 0; }
.stack-agent-info { flex: 1; min-width: 0; }
.stack-agent-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.stack-agent-info p {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.stack-agent-tier {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.stack-agent-tier.starter { background: rgba(52, 211, 153, 0.1); color: var(--accent); border: 1px solid rgba(52, 211, 153, 0.2); }
.stack-agent-tier.growth { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.stack-agent-tier.pro { background: rgba(168, 85, 247, 0.1); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }

/* Stack Summary */
.stack-summary {
    position: sticky;
    top: 160px;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.stack-plan-indicator {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.stack-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.stack-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.stack-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--accent-muted);
    margin-bottom: 1.2rem;
    transition: all 0.3s var(--ease-out-expo);
}
.stack-tier-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}
.stack-tier-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}
.stack-breakdown { margin-bottom: 1rem; }
.stack-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.stack-row.stack-total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
}
.stack-free { color: var(--accent); font-weight: 600; }
.stack-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}
.stack-byok-note {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}


/* ─── Step 3: Checkout ──────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.checkout-plan-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    background: var(--accent-muted);
    text-align: center;
}
.checkout-plan-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: var(--accent);
    color: var(--bg-base);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.checkout-plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.checkout-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.checkout-plan-setup {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 0.25rem;
}
.checkout-selected-niche, .checkout-selected-agents {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.checkout-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.4rem;
}
.checkout-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}
.checkout-agent-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0.2rem;
}
.checkout-byok-card {
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.checkout-byok-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.checkout-byok-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.checkout-byok-sub {
    margin-top: 0.5rem;
    font-size: 0.72rem !important;
    color: var(--text-tertiary) !important;
}

/* Checkout Form */
.checkout-form {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.checkout-form h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.form-group { margin-bottom: 0.75rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.checkout-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s var(--ease-out-expo);
}
.checkout-form input::placeholder { color: var(--text-tertiary); }
.checkout-form input:focus { border-color: var(--border-accent); }

.checkout-pay-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--bg-base);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    margin-top: 1.5rem;
}
.checkout-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--shadow-accent); }
.checkout-pay-btn svg { color: var(--bg-base); }
.checkout-secure {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}


/* ─── Step 4: Connect ───────────────── */
.setup-progress-bar {
    position: relative;
    height: 6px;
    background: var(--bg-surface-elevated);
    border-radius: 100px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.setup-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 100px;
    transition: width 0.5s var(--ease-out-expo);
}
.setup-progress-text {
    position: absolute;
    right: 0;
    top: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.connect-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.connect-item {
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    gap: 1rem;
    transition: all 0.3s var(--ease-out-expo);
}
.connect-item.active {
    border-color: var(--border-accent);
    background: var(--accent-muted);
}
.connect-item.done {
    border-color: rgba(52, 211, 153, 0.2);
    opacity: 0.7;
}
.connect-item:not(.active):not(.done) {
    opacity: 0.5;
    pointer-events: none;
}
.connect-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.connect-item.done .connect-check {
    background: var(--accent);
    border-color: var(--accent);
}
.connect-item.done .connect-check svg {
    width: 14px;
    height: 14px;
    color: var(--bg-base);
}
.connect-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-tertiary);
}
.connect-item.active .connect-num { color: var(--accent); }
.connect-item.active .connect-check { border-color: var(--accent); }
.connect-content { flex: 1; }
.connect-content h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.connect-optional {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-tertiary);
}
.connect-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.connect-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.connect-select, .connect-input {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    flex: 1;
    min-width: 200px;
}
.connect-select { appearance: none; cursor: pointer; }
.connect-save-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--bg-base);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.connect-save-btn:hover { box-shadow: 0 4px 12px var(--shadow-accent); }
.connect-help-link {
    font-size: 0.72rem;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.3rem;
}
.connect-help-link:hover { text-decoration: underline; }

.connect-oauth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.connect-oauth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.connect-oauth-btn:hover { border-color: var(--border-accent); }
.connect-oauth-btn.google {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}
.connect-oauth-btn.google:hover { background: #3367d6; }
.connect-oauth-btn.secondary {
    background: transparent;
    color: var(--text-secondary);
}
.oauth-icon {
    font-weight: 700;
    font-size: 0.9rem;
}
.connect-skip-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 0.72rem;
    cursor: pointer;
    transition: color 0.3s;
}
.connect-skip-btn:hover { color: var(--text-secondary); }
.connect-edit-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
}


/* ─── Step 5: Go Live ───────────────── */
.live-header { margin-bottom: 2rem; }
.live-celebration {
    margin-bottom: 1rem;
}
.live-emoji {
    font-size: 3rem;
    display: inline-block;
    animation: celebrate 0.6s var(--ease-spring);
}
@keyframes celebrate {
    0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.live-agents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}
.live-agent-card {
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    background: var(--bg-surface);
}
.live-agent-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.live-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.live-agent-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.live-agent-card p {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.live-next-steps { margin-bottom: 2rem; }
.live-next-steps h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.live-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.live-step-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.live-step-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.75rem;
}
.live-step-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.live-step-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.live-code-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    border: 1px solid var(--border);
}
.live-code-block code {
    flex: 1;
    font-size: 0.68rem;
    color: var(--accent);
    font-family: 'SF Mono', 'Fira Code', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-copy-btn {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--bg-base);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.live-link {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.live-link:hover { text-decoration: underline; }
.live-phone-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}


/* ─── Responsive ────────────────────── */
@media (max-width: 768px) {
    .niche-grid { grid-template-columns: repeat(2, 1fr); }
    .stack-builder { grid-template-columns: 1fr; }
    .stack-summary { position: static; order: -1; }
    .checkout-layout { grid-template-columns: 1fr; }
    .live-steps-grid { grid-template-columns: 1fr; }
    .progress-step-label { display: none; }
    .progress-steps { max-width: 280px; }
    .wizard-btn-next { font-size: 0.82rem; padding: 0.75rem 1.2rem; }
}
