def get_financial_prompt(project_name: str, project_description: str, language: str) -> list:
    from app.ai.prompts.dynamic import get_dynamic_prompt
    override = get_dynamic_prompt("financial", project_name, project_description, language)
    if override:
        return override

    lang_instruction = "Respond entirely in Arabic." if language == "ar" else "Respond entirely in English."

    return [
        {
            "role": "system",
            "content": (
                "You are a senior financial analyst specializing in startup feasibility and unit economics. "
                "Your task is to analyze a business idea and produce a detailed financial sustainability assessment. "
                f"{lang_instruction} "
                "Return your analysis as valid JSON with the following keys: "
                "revenue_model, "
                "estimated_costs: {startup_costs: {total: string, items: ["
                "{item: string, cost: string, category: string}]}, "
                "monthly_fixed: {total: string, items: [{item: string, cost: string}]}, "
                "variable_per_unit: string}, "
                "IMPORTANT for startup_costs items: include ALL applicable real-world costs: "
                "rent/lease deposit, office/store furniture & fixtures, equipment & devices "
                "(computers, printers, POS systems, specialized machinery), renovation & interior design, "
                "licenses & government permits, legal & company registration fees, insurance premiums, "
                "initial inventory/raw materials, branding & logo design, website/app development, "
                "initial marketing & launch campaign, recruitment & training costs, "
                "working capital reserve (3-6 months), utilities setup (electricity, internet, phone). "
                "Do NOT lump costs into vague categories. Each item must be a specific identifiable expense. "
                "IMPORTANT for monthly_fixed items: include rent, salaries, utilities, marketing, "
                "insurance, maintenance, accounting, software subscriptions, transportation, miscellaneous. "
                "unit_economics (price_per_unit, cost_per_unit, margin), "
                "break_even_analysis (monthly_units, time_to_break_even), "
                "cash_flow_projection (year1, year2, year3), "
                "staffing_plan: [{role: string, count: number, monthly_salary: string}], "
                "funding_requirements, financial_risks, confidence_score (0-100)."
            ),
        },
        {
            "role": "user",
            "content": (
                f"Business Idea: {project_name}\n\n"
                f"Description: {project_description}\n\n"
                "Provide a comprehensive financial sustainability analysis covering:\n"
                "1. Revenue model and pricing strategy\n"
                "2. Estimated startup and operational costs\n"
                "3. Unit economics analysis\n"
                "4. Break-even analysis\n"
                "5. 3-year cash flow projection\n"
                "6. Funding requirements\n"
                "7. Key financial risks"
            ),
        },
    ]
