{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PaymentSuccessScreen",
      "name": "Payment/Success",
      "reusable": true,
      "width": 480,
      "height": 640,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "SuccessContent",
          "width": "fill_container",
          "height": "fill_container",
          "layout": "vertical",
          "justifyContent": "center",
          "alignItems": "center",
          "gap": 32,
          "padding": 40,
          "children": [
            {"type": "frame", "id": "SuccessIconOuter", "width": 120, "height": 120, "fill": "#22C55E20", "cornerRadius": 100, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "frame", "id": "SuccessIconInner", "width": 80, "height": 80, "fill": "#22C55E", "cornerRadius": 100, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SuccessCheck", "width": 40, "height": 40, "iconFontName": "check", "iconFontFamily": "lucide", "fill": "$text-primary"}
              ]}
            ]},
            {"type": "frame", "id": "SuccessInfo", "layout": "vertical", "gap": 12, "alignItems": "center", "children": [
              {"type": "text", "id": "SuccessTitle", "fill": "#22C55E", "content": "Thanh toán thành công!", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"},
              {"type": "text", "id": "SuccessAmount", "fill": "$text-primary", "content": "530,250₫", "fontFamily": "Roboto", "fontSize": 36, "fontWeight": "700"},
              {"type": "frame", "id": "SuccessMethod", "fill": "$bg-interactive", "cornerRadius": 8, "padding": [8, 14], "gap": 8, "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SuccessMethodIcon", "width": 16, "height": 16, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "#22C55E"},
                {"type": "text", "id": "SuccessMethodText", "fill": "$text-secondary", "content": "Tiền mặt • Thối 69,750₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]}
            ]},
            {"type": "frame", "id": "SuccessOrderInfo", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 20, "layout": "vertical", "gap": 12, "children": [
              {"type": "frame", "id": "SuccessOrderRow1", "width": "fill_container", "justifyContent": "space_between", "children": [
                {"type": "text", "id": "SuccessOrderLabel", "fill": "$text-tertiary", "content": "Mã đơn hàng", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "SuccessOrderId", "fill": "$text-primary", "content": "#0089", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "SuccessOrderRow2", "width": "fill_container", "justifyContent": "space_between", "children": [
                {"type": "text", "id": "SuccessTimeLabel", "fill": "$text-tertiary", "content": "Thời gian", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "SuccessTimeValue", "fill": "$text-primary", "content": "06/02/2026 00:05", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]},
              {"type": "frame", "id": "SuccessOrderRow3", "width": "fill_container", "justifyContent": "space_between", "children": [
                {"type": "text", "id": "SuccessCashierLabel", "fill": "$text-tertiary", "content": "Nhân viên", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "normal"},
                {"type": "text", "id": "SuccessCashierValue", "fill": "$text-primary", "content": "Minh Tuấn", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "SuccessFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [20, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "layout": "vertical",
          "gap": 12,
          "children": [
            {"type": "frame", "id": "SuccessActions", "width": "fill_container", "gap": 12, "children": [
              {"type": "frame", "id": "SuccessPrintBtn", "width": "fill_container", "height": 52, "fill": "$bg-interactive", "cornerRadius": 14, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SuccessPrintIcon", "width": 20, "height": 20, "iconFontName": "printer", "iconFontFamily": "lucide", "fill": "$text-primary"},
                {"type": "text", "id": "SuccessPrintText", "fill": "$text-primary", "content": "In hóa đơn", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
              ]},
              {"type": "frame", "id": "SuccessSendBtn", "width": "fill_container", "height": 52, "fill": "$bg-interactive", "cornerRadius": 14, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "SuccessSendIcon", "width": 20, "height": 20, "iconFontName": "send", "iconFontFamily": "lucide", "fill": "$text-primary"},
                {"type": "text", "id": "SuccessSendText", "fill": "$text-primary", "content": "Gửi email", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
              ]}
            ]},
            {"type": "frame", "id": "SuccessNewOrderBtn", "width": "fill_container", "height": 56, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#FF8A4C", "position": 1}]}, "cornerRadius": 14, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "SuccessNewIcon", "width": 22, "height": 22, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "SuccessNewText", "fill": "$text-primary", "content": "Đơn hàng mới", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
